Class: RisingDragon::Event
- Inherits:
-
Object
- Object
- RisingDragon::Event
- Defined in:
- lib/rising_dragon/event.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(id:, type:, timestamp:, data:) ⇒ Event
constructor
A new instance of Event.
Constructor Details
#initialize(id:, type:, timestamp:, data:) ⇒ Event
Returns a new instance of Event.
4 5 6 7 8 9 |
# File 'lib/rising_dragon/event.rb', line 4 def initialize(id:, type:, timestamp:, data:) @id = id @type = type @timestamp = @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
3 4 5 |
# File 'lib/rising_dragon/event.rb', line 3 def data @data end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/rising_dragon/event.rb', line 3 def id @id end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
3 4 5 |
# File 'lib/rising_dragon/event.rb', line 3 def @timestamp end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/rising_dragon/event.rb', line 3 def type @type end |