Class: Jabbot::Bot::Message

Inherits:
Struct
  • Object
show all
Defined in:
lib/jabbot/bot.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



14
15
16
# File 'lib/jabbot/bot.rb', line 14

def text
  @text
end

#timeObject

Returns the value of attribute time

Returns:

  • (Object)

    the current value of time



14
15
16
# File 'lib/jabbot/bot.rb', line 14

def time
  @time
end

#userObject

Returns the value of attribute user

Returns:

  • (Object)

    the current value of user



14
15
16
# File 'lib/jabbot/bot.rb', line 14

def user
  @user
end

Instance Method Details

#to_sObject



15
16
17
# File 'lib/jabbot/bot.rb', line 15

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