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



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

def 
  Account.new self, get(path)
end

#connected?Boolean

Returns:

  • (Boolean)


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

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