Sha256: 71b439934d409d7975576a8c821a441d5fc63971cb796c60d070c7ca74f0d156

Contents?: true

Size: 604 Bytes

Versions: 1

Compression:

Stored size: 604 Bytes

Contents

class TokyoMetro::ApiProcessor::RealTimeInfos::RailwayLine::Info

  def initialize( railway_line , http_client )
    @railway_line = railway_line
    @http_client = http_client
  end

  attr_reader :railway_line
  attr_reader :http_client

  def has_train_operation_info?
    @trian_information.present?
  end

  def dc_date_of_train_operation_info
    @train_operation_info.dc_date
  end
  alias :dc_date_time_of_train_operation_info :dc_date_of_train_operation_info

  def has_any_train_location?
    @train_location_infos.present?
  end

  def railway_line_same_as
    @railway_line.same_as
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tokyo_metro-0.10.1 lib/tokyo_metro/api_processor/real_time_infos/info.rb