Class: Sms
- Inherits:
-
Object
- Object
- Sms
- Defined in:
- lib/sms.rb
Overview
Basic SMS class for sample gateway
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#from ⇒ Object
Returns the value of attribute from.
-
#id ⇒ Object
Returns the value of attribute id.
-
#to ⇒ Object
Returns the value of attribute to.
Instance Method Summary collapse
-
#initialize(body) ⇒ Sms
constructor
A new instance of Sms.
Constructor Details
#initialize(body) ⇒ Sms
Returns a new instance of Sms.
6 7 8 |
# File 'lib/sms.rb', line 6 def initialize(body) self.body = body end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
4 5 6 |
# File 'lib/sms.rb', line 4 def body @body end |
#from ⇒ Object
Returns the value of attribute from.
4 5 6 |
# File 'lib/sms.rb', line 4 def from @from end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/sms.rb', line 4 def id @id end |
#to ⇒ Object
Returns the value of attribute to.
4 5 6 |
# File 'lib/sms.rb', line 4 def to @to end |