Class: Unisender::API
- Inherits:
-
Object
- Object
- Unisender::API
- Defined in:
- lib/unisender_api.rb
Instance Attribute Summary collapse
-
#api ⇒ Object
Returns the value of attribute api.
-
#extends ⇒ Object
Returns the value of attribute extends.
-
#lists ⇒ Object
Returns the value of attribute lists.
-
#messages ⇒ Object
Returns the value of attribute messages.
-
#partners ⇒ Object
Returns the value of attribute partners.
-
#statistics ⇒ Object
Returns the value of attribute statistics.
Instance Method Summary collapse
-
#initialize(api_key, locale = 'en', test = false) ⇒ API
constructor
A new instance of API.
Constructor Details
#initialize(api_key, locale = 'en', test = false) ⇒ API
Returns a new instance of API.
16 17 18 19 20 21 22 23 |
# File 'lib/unisender_api.rb', line 16 def initialize(api_key, locale = 'en', test = false) self.api = ApiCall.new(api_key, locale, test) @lists = Lists.new(self.api) @messages = Messages.new(self.api) @statistics = Statistics.new(self.api) @extends = Extends.new(self.api) @partners = Partners.new(self.api) end |
Instance Attribute Details
#api ⇒ Object
Returns the value of attribute api.
14 15 16 |
# File 'lib/unisender_api.rb', line 14 def api @api end |
#extends ⇒ Object
Returns the value of attribute extends.
14 15 16 |
# File 'lib/unisender_api.rb', line 14 def extends @extends end |
#lists ⇒ Object
Returns the value of attribute lists.
14 15 16 |
# File 'lib/unisender_api.rb', line 14 def lists @lists end |
#messages ⇒ Object
Returns the value of attribute messages.
14 15 16 |
# File 'lib/unisender_api.rb', line 14 def @messages end |
#partners ⇒ Object
Returns the value of attribute partners.
14 15 16 |
# File 'lib/unisender_api.rb', line 14 def partners @partners end |
#statistics ⇒ Object
Returns the value of attribute statistics.
14 15 16 |
# File 'lib/unisender_api.rb', line 14 def statistics @statistics end |