Class: Sangi::Event
- Inherits:
-
Object
- Object
- Sangi::Event
- Defined in:
- lib/sangi/event.rb
Instance Attribute Summary collapse
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#place_index ⇒ Object
readonly
Returns the value of attribute place_index.
-
#row ⇒ Object
readonly
Returns the value of attribute row.
-
#to ⇒ Object
readonly
Returns the value of attribute to.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type:, row: nil, place_index: nil, kind: nil, from: nil, to: nil) ⇒ Event
constructor
A new instance of Event.
Constructor Details
#initialize(type:, row: nil, place_index: nil, kind: nil, from: nil, to: nil) ⇒ Event
Returns a new instance of Event.
5 6 7 8 9 10 11 12 |
# File 'lib/sangi/event.rb', line 5 def initialize(type:, row: nil, place_index: nil, kind: nil, from: nil, to: nil) @type = type @row = row @place_index = place_index @kind = kind @from = from @to = to end |
Instance Attribute Details
#from ⇒ Object (readonly)
Returns the value of attribute from.
3 4 5 |
# File 'lib/sangi/event.rb', line 3 def from @from end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind.
3 4 5 |
# File 'lib/sangi/event.rb', line 3 def kind @kind end |
#place_index ⇒ Object (readonly)
Returns the value of attribute place_index.
3 4 5 |
# File 'lib/sangi/event.rb', line 3 def place_index @place_index end |
#row ⇒ Object (readonly)
Returns the value of attribute row.
3 4 5 |
# File 'lib/sangi/event.rb', line 3 def row @row end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
3 4 5 |
# File 'lib/sangi/event.rb', line 3 def to @to end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/sangi/event.rb', line 3 def type @type end |