Class: RubyEmailMarketing::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_email_marketing.rb

Overview

Your code goes here…

Instance Attribute Summary collapse

Instance Method Summary collapse

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_clientObject (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

#contactsObject



19
20
21
# File 'lib/ruby_email_marketing.rb', line 19

def contacts
  Contacts.new(@yonoma_client)
end

#listObject



23
24
25
# File 'lib/ruby_email_marketing.rb', line 23

def list
  Lists.new(@yonoma_client)
end

#tagsObject



27
28
29
# File 'lib/ruby_email_marketing.rb', line 27

def tags
  Tags.new(@yonoma_client)
end