Class: Ekispert::Course::Route::Point::Station
- Inherits:
-
Ekispert::Course::Route::Point
- Object
- EkispertBase
- Ekispert::Course::Route::Point
- Ekispert::Course::Route::Point::Station
- Defined in:
- lib/ekispert/course/route/point/station.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#name_list ⇒ Object
Returns the value of attribute name_list.
-
#type_list ⇒ Object
Returns the value of attribute type_list.
-
#yomi_list ⇒ Object
Returns the value of attribute yomi_list.
Attributes inherited from Ekispert::Course::Route::Point
#geo_point_list, #prefecture_list, #station_list
Instance Method Summary collapse
-
#initialize(element) ⇒ Station
constructor
A new instance of Station.
- #name ⇒ Object
- #type ⇒ Object
- #yomi ⇒ Object
Methods inherited from Ekispert::Course::Route::Point
#geo_point, #prefecture, #station, #station?
Methods included from Util
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_list ⇒ Object
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_list ⇒ Object
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_list ⇒ Object
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
#name ⇒ Object
15 16 17 |
# File 'lib/ekispert/course/route/point/station.rb', line 15 def name @name_list[0].text end |
#type ⇒ Object
23 24 25 |
# File 'lib/ekispert/course/route/point/station.rb', line 23 def type @type_list[0].text end |
#yomi ⇒ Object
19 20 21 |
# File 'lib/ekispert/course/route/point/station.rb', line 19 def yomi @yomi_list[0].text end |