Class: Ace::Demo::Models::CastEvent
- Inherits:
-
Object
- Object
- Ace::Demo::Models::CastEvent
- Defined in:
- lib/ace/demo/models/cast_event.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(time:, type:, data:) ⇒ CastEvent
constructor
A new instance of CastEvent.
Constructor Details
#initialize(time:, type:, data:) ⇒ CastEvent
Returns a new instance of CastEvent.
9 10 11 12 13 |
# File 'lib/ace/demo/models/cast_event.rb', line 9 def initialize(time:, type:, data:) @time = time @type = type @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
7 8 9 |
# File 'lib/ace/demo/models/cast_event.rb', line 7 def data @data end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
7 8 9 |
# File 'lib/ace/demo/models/cast_event.rb', line 7 def time @time end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
7 8 9 |
# File 'lib/ace/demo/models/cast_event.rb', line 7 def type @type end |