Sha256: 195692b7d64540ab1f9a2d5ab2d84fa22f671471edea1a47fad61d8d84457223

Contents?: true

Size: 1.24 KB

Versions: 1

Compression:

Stored size: 1.24 KB

Contents

# トイレの情報を扱うクラス
class TokyoMetro::Api::StationFacility::Info::BarrierFree::Facility::Toilet::Info < TokyoMetro::Api::StationFacility::Info::BarrierFree::Info

  include ::TokyoMetro::ClassNameLibrary::Api::StationFacility
  include ::TokyoMetro::ClassNameLibrary::Api::StationFacility::BarrierFree::Toilet

  # Constructor
  def initialize( id_urn , same_as , service_detail , place_name , located_area_name , remark , has_assistant )
    super( id_urn , same_as , service_detail , place_name , located_area_name , remark )
    @has_assistant = has_assistant
  end

  # トイレ内のバリアフリー設備
  # @return [Assistant or nil]
  attr_reader :has_assistant
  alias :assistant_facility :has_assistant

  # @!group バリアフリー設備に関するメソッド

  # トイレ内にバリアフリー設備があるか否かを判定するメソッド
  # @return [Boolean]
  def assistant_facility_available?
    self.assistant_facility.instance_of?( self.class.barrier_free_toilet_assinstant_class )
  end

  def self.factory_for_this_class
    factory_for_generating_barrier_free_toilet_info_from_hash
  end

  def self.factory_for_seeding_this_class
    factory_for_seeding_barrier_free_facility_toilet_info
  end

  # @!endgroup

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tokyo_metro-0.10.1 lib/tokyo_metro/api/station_facility/info/barrier_free/facility/toilet/info.rb