Class: Mchat::TimelineCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/mchat/timeline.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject

Returns the value of attribute data.



7
8
9
# File 'lib/mchat/timeline.rb', line 7

def data
  @data
end

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/mchat/timeline.rb', line 7

def name
  @name
end

#usedObject

Returns the value of attribute used.



7
8
9
# File 'lib/mchat/timeline.rb', line 7

def used
  @used
end