Class: Ekispert::Course::Route::Point::Station

Inherits:
Ekispert::Course::Route::Point show all
Defined in:
lib/ekispert/course/route/point/station.rb

Defined Under Namespace

Classes: Name, Type, Yomi

Instance Attribute Summary collapse

Attributes inherited from Ekispert::Course::Route::Point

#geo_point_list, #prefecture_list, #station_list

Instance Method Summary collapse

Methods inherited from Ekispert::Course::Route::Point

#geo_point, #prefecture, #station, #station?

Methods included from Util

#snakecase

Constructor Details

#initialize(element) ⇒ Station

Returns a new instance of Station.



8
9
10
11
12
13
# File 'lib/ekispert/course/route/point/station.rb', line 8

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

Instance Attribute Details

#name_listObject

Returns the value of attribute name_list.



6
7
8
# File 'lib/ekispert/course/route/point/station.rb', line 6

def name_list
  @name_list
end

#type_listObject

Returns the value of attribute type_list.



6
7
8
# File 'lib/ekispert/course/route/point/station.rb', line 6

def type_list
  @type_list
end

#yomi_listObject

Returns the value of attribute yomi_list.



6
7
8
# File 'lib/ekispert/course/route/point/station.rb', line 6

def yomi_list
  @yomi_list
end

Instance Method Details

#nameObject



15
16
17
# File 'lib/ekispert/course/route/point/station.rb', line 15

def name
  @name_list[0].text
end

#typeObject



23
24
25
# File 'lib/ekispert/course/route/point/station.rb', line 23

def type
  @type_list[0].text
end

#yomiObject



19
20
21
# File 'lib/ekispert/course/route/point/station.rb', line 19

def yomi
  @yomi_list[0].text
end