Method: Etsy::Response#count

Defined in:
lib/etsy/response.rb

#countObject

Number of records in the response results



35
36
37
38
39
40
41
# File 'lib/etsy/response.rb', line 35

def count
  if paginated?
    to_hash['results'].nil? ? 0 : to_hash['results'].size
  else
    to_hash['count']
  end
end