Class: RubyEmailMarketing::Client
- Inherits:
-
Object
- Object
- RubyEmailMarketing::Client
- Defined in:
- lib/ruby_email_marketing.rb
Overview
Your code goes hereā¦
Instance Attribute Summary collapse
-
#yonoma_client ⇒ Object
readonly
Returns the value of attribute yonoma_client.
Instance Method Summary collapse
- #contacts ⇒ Object
-
#initialize(api_key) ⇒ Client
constructor
A new instance of Client.
- #list ⇒ Object
- #tags ⇒ Object
Constructor Details
#initialize(api_key) ⇒ Client
Returns a new instance of Client.
15 16 17 |
# File 'lib/ruby_email_marketing.rb', line 15 def initialize(api_key) @yonoma_client = YonomaClient.new(api_key) end |
Instance Attribute Details
#yonoma_client ⇒ Object (readonly)
Returns the value of attribute yonoma_client.
13 14 15 |
# File 'lib/ruby_email_marketing.rb', line 13 def yonoma_client @yonoma_client end |
Instance Method Details
#contacts ⇒ Object
19 20 21 |
# File 'lib/ruby_email_marketing.rb', line 19 def contacts Contacts.new(@yonoma_client) end |
#list ⇒ Object
23 24 25 |
# File 'lib/ruby_email_marketing.rb', line 23 def list Lists.new(@yonoma_client) end |
#tags ⇒ Object
27 28 29 |
# File 'lib/ruby_email_marketing.rb', line 27 def Tags.new(@yonoma_client) end |