class SquarespaceApi::ResourceGroups::Products

Constants

PATH

Public Instance Methods

find(id) click to toggle source
# File lib/squarespace_api/resource_groups/products.rb, line 7
def find(id)
  products = where(id: id)
  products ? products.first : nil
end

Private Instance Methods

parse_collection(response) click to toggle source
# File lib/squarespace_api/resource_groups/products.rb, line 14
def parse_collection(response)
  response.body['products']
end