Class: SmsTeknik::Message

Inherits:
Object
  • Object
show all
Defined in:
lib/sms_teknik/message.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject

Returns the value of attribute body.



3
4
5
# File 'lib/sms_teknik/message.rb', line 3

def body
  @body
end

#fromObject

Returns the value of attribute from.



3
4
5
# File 'lib/sms_teknik/message.rb', line 3

def from
  @from
end

#toObject

Returns the value of attribute to.



3
4
5
# File 'lib/sms_teknik/message.rb', line 3

def to
  @to
end