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
6 7 8 |
# File 'lib/mailchimp_api_v3/client.rb', line 6 def account Account.new self, get(path) end |
#connected? ⇒ Boolean
14 15 16 17 18 19 20 |
# File 'lib/mailchimp_api_v3/client.rb', line 14 def connected? account rescue Mailchimp::Exception::APIKeyError false else true end |
#lists(*args) ⇒ Object
10 11 12 |
# File 'lib/mailchimp_api_v3/client.rb', line 10 def lists(*args) subclass_from Lists, *args end |