Class: Mchat::TimelineCommand
- Inherits:
-
Object
- Object
- Mchat::TimelineCommand
- Defined in:
- lib/mchat/timeline.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#name ⇒ Object
Returns the value of attribute name.
-
#used ⇒ Object
Returns the value of attribute used.
Instance Method Summary collapse
-
#initialize(name, data = nil) ⇒ TimelineCommand
constructor
A new instance of TimelineCommand.
Constructor Details
#initialize(name, data = nil) ⇒ TimelineCommand
Returns a new instance of TimelineCommand.
8 9 10 11 12 13 |
# File 'lib/mchat/timeline.rb', line 8 def initialize(name, data = nil) # name for log @name = name @data = data @used = false end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
7 8 9 |
# File 'lib/mchat/timeline.rb', line 7 def data @data end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/mchat/timeline.rb', line 7 def name @name end |
#used ⇒ Object
Returns the value of attribute used.
7 8 9 |
# File 'lib/mchat/timeline.rb', line 7 def used @used end |