Class: ModSpox::Messages::Incoming::Message

Inherits:
Object
  • Object
show all
Defined in:
lib/mod_spox/messages/incoming/Message.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content) ⇒ Message

Returns a new instance of Message.



13
14
15
16
# File 'lib/mod_spox/messages/incoming/Message.rb', line 13

def initialize(content)
    @raw_content = content
    @time = Time.now
end

Instance Attribute Details

#raw_contentObject (readonly)

raw string from server



8
9
10
# File 'lib/mod_spox/messages/incoming/Message.rb', line 8

def raw_content
  @raw_content
end

#timeObject (readonly)

time of message creation



11
12
13
# File 'lib/mod_spox/messages/incoming/Message.rb', line 11

def time
  @time
end