Class: ClickSend::REST::Resource
- Inherits:
-
Object
- Object
- ClickSend::REST::Resource
- Defined in:
- lib/click_send/rest/resource.rb
Overview
A base class to wrap all basic methods to interact with ClickSend API. All other resource classes within this library inherit from this class.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#connection ⇒ Object
Returns the value of attribute connection.
Instance Method Summary collapse
-
#initialize(connection) ⇒ Resource
constructor
Instantiate a new resource object.
Constructor Details
#initialize(connection) ⇒ Resource
Instantiate a new resource object.
12 13 14 |
# File 'lib/click_send/rest/resource.rb', line 12 def initialize(connection) @connection = connection end |
Instance Attribute Details
#connection ⇒ Object
Returns the value of attribute connection.
8 9 10 |
# File 'lib/click_send/rest/resource.rb', line 8 def connection @connection end |