Class: SmsTeknik::Message
- Inherits:
-
Object
- Object
- SmsTeknik::Message
- Defined in:
- lib/sms_teknik/message.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#from ⇒ Object
Returns the value of attribute from.
-
#to ⇒ Object
Returns the value of attribute to.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(attributes = {}) ⇒ Message
Returns a new instance of Message.
5 6 7 8 9 |
# File 'lib/sms_teknik/message.rb', line 5 def initialize(attributes = {}) @from = attributes[:from] @to = attributes[:to] @body = attributes[:body] end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
3 4 5 |
# File 'lib/sms_teknik/message.rb', line 3 def body @body end |
#from ⇒ Object
Returns the value of attribute from.
3 4 5 |
# File 'lib/sms_teknik/message.rb', line 3 def from @from end |
#to ⇒ Object
Returns the value of attribute to.
3 4 5 |
# File 'lib/sms_teknik/message.rb', line 3 def to @to end |