class Ekispert::Point::Station
Attributes
gate_group_list[R]
name_list[R]
old_name_list[R]
type_list[R]
yomi_list[R]
Public Class Methods
get(params={})
click to toggle source
# File lib/ekispert/point/station.rb, line 37 def self.get(params={}) convert_point_to_station(self.superclass.get_station(params)) end
new(element)
click to toggle source
Calls superclass method
Ekispert::Point::new
# File lib/ekispert/point/station.rb, line 6 def initialize(element) @name_list = [] @yomi_list = [] @type_list = [] # when use addGateGroup param @gate_group_list = [] # when use oldName param @old_name_list = [] super(element) end
Private Class Methods
convert_point_to_station(point_list)
click to toggle source
argment:
point_list: [#<Ekispert::Point>, #<Ekispert::Point>,...]
return:
[#<Ekispert::Point::Station>, #<Ekispert::Point::Station>,...]
to be available:
Point::Station#prefecture_list Point::Station#geo_point_list
# File lib/ekispert/point/station.rb, line 48 def self.convert_point_to_station(point_list) point_list.map do |point| station = point.station_list[0] station.prefecture_list = point.prefecture_list station.geo_point_list = point.geo_point_list station end end
Public Instance Methods
gate_group()
click to toggle source
# File lib/ekispert/point/station.rb, line 29 def gate_group @gate_group_list[0] end
name()
click to toggle source
# File lib/ekispert/point/station.rb, line 17 def name @name_list[0].text end
old_name()
click to toggle source
# File lib/ekispert/point/station.rb, line 33 def old_name @old_name_list[0]&.text end
type()
click to toggle source
# File lib/ekispert/point/station.rb, line 25 def type @type_list[0].text end
yomi()
click to toggle source
# File lib/ekispert/point/station.rb, line 21 def yomi @yomi_list[0].text end