Class: Dao::Messages::Message

Inherits:
String
  • Object
show all
Defined in:
lib/dao/messages.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(string, type = nil) ⇒ Message

Returns a new instance of Message.



13
14
15
16
17
# File 'lib/dao/messages.rb', line 13

def initialize(string, type = nil)
  super("#{ string }")
ensure
  @type = type ? "#{ type }" : nil
end

Instance Attribute Details

#typeObject

Returns the value of attribute type.



11
12
13
# File 'lib/dao/messages.rb', line 11

def type
  @type
end