Sha256: 9affd3dddc3384ba2e13ab04952a7301591e723aff78ebe0b7e888b63fc1c5cf

Contents?: true

Size: 943 Bytes

Versions: 1

Compression:

Stored size: 943 Bytes

Contents

class TokyoMetro::Factory::Generate::Api::StationFacility::Info::BarrierFree::Info::Facility::Escalator < TokyoMetro::Factory::Generate::Api::StationFacility::Info::BarrierFree::Info

  include ::TokyoMetro::ClassNameLibrary::Api::StationFacility::BarrierFree::Escalator

  def variables
    super + [ availability_to_wheel_chair ]
  end

  def self.instance_class
    barrier_free_escalator_info_class
  end

  private

  def variables__check__separation
    "="
  end

  def variables__check__letter
    "●"
  end

  def availability_to_wheel_chair
    case @hash[ "spac:isAvailableTo" ]
    when nil
      false
    when self.class.spac__is_available_to # == "spac:Wheelchair"
      true
    else
      raise "Error"
    end
  end

  def service_details
    covert_and_set_array_data(
      "odpt:serviceDetail" ,
      self.class.escalator_service_detail_list_class ,
      self.class.escalator_service_detail_info_class
    )
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tokyo_metro-0.10.1 lib/tokyo_metro/factory/generate/api/station_facility/info/barrier_free/info/facility/escalator.rb