Class: ClickSend::REST::Resource

Inherits:
Object
  • Object
show all
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

AccountBalance, DeliveryReport, Sms

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#connectionObject

Returns the value of attribute connection.



8
9
10
# File 'lib/click_send/rest/resource.rb', line 8

def connection
  @connection
end