Class: MailchimpTransactional::Client
- Inherits:
-
Object
- Object
- MailchimpTransactional::Client
- Defined in:
- lib/MailchimpTransactional.rb
Instance Method Summary collapse
- #exports ⇒ Object
- #inbound ⇒ Object
-
#initialize(api_key = '') ⇒ Client
constructor
A new instance of Client.
- #ips ⇒ Object
- #messages ⇒ Object
- #metadata ⇒ Object
- #rejects ⇒ Object
- #senders ⇒ Object
- #set_api_key(api_key = '') ⇒ Object
- #set_default_output_format(output_format) ⇒ Object
- #subaccounts ⇒ Object
- #tags ⇒ Object
- #templates ⇒ Object
- #urls ⇒ Object
- #users ⇒ Object
- #webhooks ⇒ Object
- #whitelists ⇒ Object
Constructor Details
#initialize(api_key = '') ⇒ Client
Returns a new instance of Client.
36 37 38 |
# File 'lib/MailchimpTransactional.rb', line 36 def initialize(api_key = '') set_api_key(api_key) end |
Instance Method Details
#exports ⇒ Object
64 65 66 |
# File 'lib/MailchimpTransactional.rb', line 64 def exports @Exports end |
#inbound ⇒ Object
67 68 69 |
# File 'lib/MailchimpTransactional.rb', line 67 def inbound @Inbound end |
#ips ⇒ Object
70 71 72 |
# File 'lib/MailchimpTransactional.rb', line 70 def ips @Ips end |
#messages ⇒ Object
73 74 75 |
# File 'lib/MailchimpTransactional.rb', line 73 def @Messages end |
#metadata ⇒ Object
76 77 78 |
# File 'lib/MailchimpTransactional.rb', line 76 def @Metadata end |
#rejects ⇒ Object
79 80 81 |
# File 'lib/MailchimpTransactional.rb', line 79 def rejects @Rejects end |
#senders ⇒ Object
82 83 84 |
# File 'lib/MailchimpTransactional.rb', line 82 def senders @Senders end |
#set_api_key(api_key = '') ⇒ Object
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/MailchimpTransactional.rb', line 40 def set_api_key(api_key = '') @api_key = api_key @api_client = ApiClient.new(@api_key) @Exports = ExportsApi.new(@api_client) @Inbound = InboundApi.new(@api_client) @Ips = IpsApi.new(@api_client) @Messages = MessagesApi.new(@api_client) @Metadata = MetadataApi.new(@api_client) @Rejects = RejectsApi.new(@api_client) @Senders = SendersApi.new(@api_client) @Subaccounts = SubaccountsApi.new(@api_client) @Tags = TagsApi.new(@api_client) @Templates = TemplatesApi.new(@api_client) @Urls = UrlsApi.new(@api_client) @Users = UsersApi.new(@api_client) @Webhooks = WebhooksApi.new(@api_client) @Whitelists = WhitelistsApi.new(@api_client) end |
#set_default_output_format(output_format) ⇒ Object
60 61 62 |
# File 'lib/MailchimpTransactional.rb', line 60 def set_default_output_format(output_format) @api_client.set_default_output_format(output_format) end |
#subaccounts ⇒ Object
85 86 87 |
# File 'lib/MailchimpTransactional.rb', line 85 def subaccounts @Subaccounts end |
#tags ⇒ Object
88 89 90 |
# File 'lib/MailchimpTransactional.rb', line 88 def @Tags end |
#templates ⇒ Object
91 92 93 |
# File 'lib/MailchimpTransactional.rb', line 91 def templates @Templates end |
#urls ⇒ Object
94 95 96 |
# File 'lib/MailchimpTransactional.rb', line 94 def urls @Urls end |
#users ⇒ Object
97 98 99 |
# File 'lib/MailchimpTransactional.rb', line 97 def users @Users end |
#webhooks ⇒ Object
100 101 102 |
# File 'lib/MailchimpTransactional.rb', line 100 def webhooks @Webhooks end |
#whitelists ⇒ Object
103 104 105 |
# File 'lib/MailchimpTransactional.rb', line 103 def whitelists @Whitelists end |