Class: SquarespaceApi::ResourceGroups::Profiles

Inherits:
SquarespaceApi::ResourceGroup show all
Defined in:
lib/squarespace_api/resource_groups/profiles.rb

Constant Summary collapse

PATH =
'profiles'.freeze

Instance Method Summary collapse

Methods inherited from SquarespaceApi::ResourceGroup

allowed_actions, #initialize

Constructor Details

This class inherits a constructor from SquarespaceApi::ResourceGroup

Instance Method Details

#find(id) ⇒ Object



7
8
9
10
# File 'lib/squarespace_api/resource_groups/profiles.rb', line 7

def find(id)
  profiles = where(id: id)
  profiles ? profiles.first : nil
end

#update(params = {}) ⇒ Object



12
13
14
# File 'lib/squarespace_api/resource_groups/profiles.rb', line 12

def update(params = {})
  create(params)
end