Class: Ekispert::Point
- Inherits:
-
EkispertBase
- Object
- EkispertBase
- Ekispert::Point
- Defined in:
- lib/ekispert/point.rb,
lib/ekispert/point/station.rb,
lib/ekispert/point/prefecture.rb,
lib/ekispert/point/station/gate_group.rb,
lib/ekispert/point/station/gate_group/gate.rb
Direct Known Subclasses
Defined Under Namespace
Classes: GeoPoint, Prefecture, Station
Instance Attribute Summary collapse
-
#geo_point_list ⇒ Object
Returns the value of attribute geo_point_list.
-
#prefecture_list ⇒ Object
Returns the value of attribute prefecture_list.
-
#station_list ⇒ Object
Returns the value of attribute station_list.
Class Method Summary collapse
-
.get_station(params = {}) ⇒ Object
parse Point class.
- .get_station_light(params = {}) ⇒ Object
Instance Method Summary collapse
- #geo_point ⇒ Object
-
#initialize(element) ⇒ Point
constructor
A new instance of Point.
- #prefecture ⇒ Object
- #station ⇒ Object
Methods included from Util
Constructor Details
#initialize(element) ⇒ Point
Returns a new instance of Point.
5 6 7 8 9 10 |
# File 'lib/ekispert/point.rb', line 5 def initialize(element) @station_list = [] @prefecture_list = [] @geo_point_list = [] super(element) end |
Instance Attribute Details
#geo_point_list ⇒ Object
Returns the value of attribute geo_point_list.
3 4 5 |
# File 'lib/ekispert/point.rb', line 3 def geo_point_list @geo_point_list end |
#prefecture_list ⇒ Object
Returns the value of attribute prefecture_list.
3 4 5 |
# File 'lib/ekispert/point.rb', line 3 def prefecture_list @prefecture_list end |
#station_list ⇒ Object
Returns the value of attribute station_list.
3 4 5 |
# File 'lib/ekispert/point.rb', line 3 def station_list @station_list end |
Class Method Details
Instance Method Details
#geo_point ⇒ Object
20 21 22 |
# File 'lib/ekispert/point.rb', line 20 def geo_point @geo_point_list[0] end |
#prefecture ⇒ Object
16 17 18 |
# File 'lib/ekispert/point.rb', line 16 def prefecture @prefecture_list[0] end |
#station ⇒ Object
12 13 14 |
# File 'lib/ekispert/point.rb', line 12 def station @station_list[0] end |