Class: Jabbot::Message

Inherits:
Struct
  • Object
show all
Defined in:
lib/jabbot/message.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



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

def text
  @text
end

#timeObject

Returns the value of attribute time

Returns:

  • (Object)

    the current value of time



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

def time
  @time
end

#userObject

Returns the value of attribute user

Returns:

  • (Object)

    the current value of user



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

def user
  @user
end

Instance Method Details

#to_sObject



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

def to_s
  "#{user}: #{text}"
end