Class: Ekispert::Point::Station::GateGroup::Gate

Inherits:
EkispertBase
  • Object
show all
Defined in:
lib/ekispert/point/station/gate_group/gate.rb

Defined Under Namespace

Classes: GeoPoint, Name

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Util

#snakecase

Constructor Details

#initialize(element) ⇒ Gate

Returns a new instance of Gate.



8
9
10
11
12
# File 'lib/ekispert/point/station/gate_group/gate.rb', line 8

def initialize(element)
  @name_list = []
  @geo_point_list = []
  super(element)
end

Instance Attribute Details

#geo_point_listObject

Returns the value of attribute geo_point_list.



6
7
8
# File 'lib/ekispert/point/station/gate_group/gate.rb', line 6

def geo_point_list
  @geo_point_list
end

#name_listObject

Returns the value of attribute name_list.



6
7
8
# File 'lib/ekispert/point/station/gate_group/gate.rb', line 6

def name_list
  @name_list
end

Instance Method Details

#geo_pointObject



18
19
20
# File 'lib/ekispert/point/station/gate_group/gate.rb', line 18

def geo_point
  @geo_point_list[0]
end

#nameObject



14
15
16
# File 'lib/ekispert/point/station/gate_group/gate.rb', line 14

def name
  @name_list[0].text
end