Class: March1Ruby::Client
- Inherits:
-
Object
- Object
- March1Ruby::Client
- Defined in:
- lib/march_1_ruby.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.
16 17 18 |
# File 'lib/march_1_ruby.rb', line 16 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.
14 15 16 |
# File 'lib/march_1_ruby.rb', line 14 def yonoma_client @yonoma_client end |
Instance Method Details
#contacts ⇒ Object
20 21 22 |
# File 'lib/march_1_ruby.rb', line 20 def contacts Contacts.new(@yonoma_client) end |
#list ⇒ Object
24 25 26 |
# File 'lib/march_1_ruby.rb', line 24 def list Lists.new(@yonoma_client) end |
#tags ⇒ Object
28 29 30 |
# File 'lib/march_1_ruby.rb', line 28 def Tags.new(@yonoma_client) end |