Class: Butler::IRC::Topic

Inherits:
Struct
  • Object
show all
Defined in:
lib/butler/irc/topic.rb,
lib/butler/irc/topic.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#set_atObject

Returns the value of attribute set_at

Returns:

  • (Object)

    the current value of set_at



3
4
5
# File 'lib/butler/irc/topic.rb', line 3

def set_at
  @set_at
end

#set_byObject

Returns the value of attribute set_by

Returns:

  • (Object)

    the current value of set_by



3
4
5
# File 'lib/butler/irc/topic.rb', line 3

def set_by
  @set_by
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



3
4
5
# File 'lib/butler/irc/topic.rb', line 3

def text
  @text
end

Instance Method Details

#inspectObject



5
6
7
8
9
10
11
12
# File 'lib/butler/irc/topic.rb', line 5

def inspect
	"#<%s %s --%s on %s>" %  [
		self.class,
		text,
		set_by,
		set_at.strftime("%Y-%m-%d %H:%M")
	]
end