Class: CetSp::Event

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Event

Returns a new instance of Event.



29
30
31
32
33
# File 'lib/cetsp.rb', line 29

def initialize(options)
  @code = options[:code]
  @place = options[:place]
  @direction = options[:direction]
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



27
28
29
# File 'lib/cetsp.rb', line 27

def code
  @code
end

#directionObject (readonly)

Returns the value of attribute direction.



27
28
29
# File 'lib/cetsp.rb', line 27

def direction
  @direction
end

#placeObject (readonly)

Returns the value of attribute place.



27
28
29
# File 'lib/cetsp.rb', line 27

def place
  @place
end

#sinceObject (readonly)

Returns the value of attribute since.



27
28
29
# File 'lib/cetsp.rb', line 27

def since
  @since
end