Class: Mailchimp::Client
- Includes:
- Remote
- Defined in:
- lib/mailchimp_api_v3/client.rb,
lib/mailchimp_api_v3/client/remote.rb
Defined Under Namespace
Modules: Remote
Instance Method Summary collapse
Methods included from Remote
Methods inherited from Instance
#delete, get, #matches?, #path, #same?, #subclass_from, #update
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Mailchimp::Instance
Instance Method Details
#account ⇒ Object
7 8 9 |
# File 'lib/mailchimp_api_v3/client.rb', line 7 def account Account.new self, get(path) end |
#connected? ⇒ Boolean
15 16 17 18 19 20 21 |
# File 'lib/mailchimp_api_v3/client.rb', line 15 def connected? account rescue Mailchimp::Exception::APIKeyError false else true end |
#lists(*args) ⇒ Object
11 12 13 |
# File 'lib/mailchimp_api_v3/client.rb', line 11 def lists(*args) subclass_from Lists, *args end |