Class: Mailchimp::Client

Inherits:
Instance show all
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

#delete, #get, #patch, #post

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

#accountObject



7
8
9
# File 'lib/mailchimp_api_v3/client.rb', line 7

def 
  Account.new self, get(path)
end

#connected?Boolean

Returns:

  • (Boolean)


15
16
17
18
19
20
21
# File 'lib/mailchimp_api_v3/client.rb', line 15

def connected?
  
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