Class: Sangi::Event

Inherits:
Object
  • Object
show all
Defined in:
lib/sangi/event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fromObject (readonly)

Returns the value of attribute from.



3
4
5
# File 'lib/sangi/event.rb', line 3

def from
  @from
end

#kindObject (readonly)

Returns the value of attribute kind.



3
4
5
# File 'lib/sangi/event.rb', line 3

def kind
  @kind
end

#place_indexObject (readonly)

Returns the value of attribute place_index.



3
4
5
# File 'lib/sangi/event.rb', line 3

def place_index
  @place_index
end

#rowObject (readonly)

Returns the value of attribute row.



3
4
5
# File 'lib/sangi/event.rb', line 3

def row
  @row
end

#toObject (readonly)

Returns the value of attribute to.



3
4
5
# File 'lib/sangi/event.rb', line 3

def to
  @to
end

#typeObject (readonly)

Returns the value of attribute type.



3
4
5
# File 'lib/sangi/event.rb', line 3

def type
  @type
end