module TokyoMetro::Modules::Api::ToFactory::Convert::Customize::Station::ConnectingRailwayLine::Info::ConnectingRailwayLine::Info
@note
This module is prepended to {TokyoMetro::Api::Station::Info::ConnectingRailwayLine::Info} by {TokyoMetro::Modules::Api::ToFactory::Convert::Customize::Station::ConnectingRailwayLine.set_modules} .
Attributes
connecting_another_station[R]
customized_infos[R]
end_on[R]
index_in_station[R]
note[R]
start_on[R]
Public Class Methods
new( railway_line , start_on: nil , end_on: nil , index_in_station: nil , cleared: false , connecting_another_station: nil , not_recommended: false , note: nil , hidden_on_railway_line_page: false )
click to toggle source
Constructor
Calls superclass method
# File lib/tokyo_metro/modules/api/to_factory/convert/customize/station/connecting_railway_line/info/connecting_railway_line/info.rb, line 12 def initialize( railway_line , start_on: nil , end_on: nil , index_in_station: nil , cleared: false , connecting_another_station: nil , not_recommended: false , note: nil , hidden_on_railway_line_page: false ) # puts railway_line super( railway_line ) @start_on = set_time_of( start_on , type: :start_on ) @end_on = set_time_of( end_on , type: :end_on ) @index_in_station = index_in_station @cleared = cleared @connecting_another_station = connecting_another_station @not_recommended = not_recommended @note = note @hidden_on_railway_line_page = hidden_on_railway_line_page @customized_infos = ::Array.new end
Public Instance Methods
connecting_to_another_station?()
click to toggle source
# File lib/tokyo_metro/modules/api/to_factory/convert/customize/station/connecting_railway_line/info/connecting_railway_line/info.rb, line 82 def connecting_to_another_station? connecting_another_station.present? end