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, #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



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

def 
  .new self, get(path)
end

#connected?Boolean

Returns:

  • (Boolean)


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

def connected?
  
rescue Mailchimp::Exception::APIKeyError
  false
else
  true
end

#lists(*args) ⇒ Object



9
10
11
# File 'lib/mailchimp_api_v3/client.rb', line 9

def lists(*args)
  subclass_from Lists, *args
end