Class: SmsSpec::Message
- Inherits:
-
Object
- Object
- SmsSpec::Message
- Includes:
- Util
- Defined in:
- lib/sms_spec/message.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#from ⇒ Object
Returns the value of attribute from.
-
#number ⇒ Object
Returns the value of attribute number.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Message
constructor
A new instance of Message.
Methods included from Util
Constructor Details
#initialize(opts = {}) ⇒ Message
9 10 11 12 13 |
# File 'lib/sms_spec/message.rb', line 9 def initialize(opts={}) @number = sanitize opts[:number] @body = opts[:body] @from = opts[:from] end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
4 5 6 |
# File 'lib/sms_spec/message.rb', line 4 def body @body end |
#from ⇒ Object
Returns the value of attribute from.
5 6 7 |
# File 'lib/sms_spec/message.rb', line 5 def from @from end |
#number ⇒ Object
Returns the value of attribute number.
3 4 5 |
# File 'lib/sms_spec/message.rb', line 3 def number @number end |