Method: FreshdeskAPI::Collection#all!

Defined in:
lib/freshdesk_api/collection.rb

#all!(options = {}) ⇒ Object

Execute actual GET from API and load resources into proper class. # @return [Array] All resource



41
42
43
44
45
46
47
48
# File 'lib/freshdesk_api/collection.rb', line 41

def all!(options = {})
  @options.merge!(options)

  response = get_response(path)
  handle_response(response.body)

  @resources
end