Class: MailchimpAPI::AccountInformation

Inherits:
Base
  • Object
show all
Defined in:
lib/mailchimp_api/resources/account_information.rb

Class Method Summary collapse

Methods inherited from Base

activate_session, exists?, headers, reset_session, #to_h

Class Method Details

.find(*arguments) ⇒ Object



9
10
11
12
13
14
15
16
17
18
# File 'lib/mailchimp_api/resources/account_information.rb', line 9

def find(*arguments)
  scope   = arguments.slice!(0)
  options = arguments.slice!(0) || {}

  prefix_options, query_options = split_options options[:params]

  path = element_path scope, prefix_options, query_options

  instantiate_record format.decode(connection.get(path, headers).body), prefix_options
end