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