Class: Message

Inherits:
Object
  • Object
show all
Includes:
TextSpec::Util
Defined in:
lib/text_spec/message.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from TextSpec::Util

#sanitize

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

#bodyObject

Returns the value of attribute body.



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

def body
  @body
end

#numberObject

Returns the value of attribute number.



2
3
4
# File 'lib/text_spec/message.rb', line 2

def number
  @number
end