Sha256: c4a3e128d6fb250f5df31f617cb2de4d0e450ee798e08d30ac428c887f736eb6
Contents?: true
Size: 1.32 KB
Versions: 3
Compression:
Stored size: 1.32 KB
Contents
class Gillbus class Tariff extend Fields include UpdateAttrs # => "Y" field :short_name # => "Базовый тариф" field :full_name # => nil field :start_date, :date # => nil field :end_date, :date # => "Базовый тариф стоимости проезда одного пассажиров в одном направлении\n" field :description # => "24" field :time_to_buy_reserved, :int # => "6" field :time_to_stop_booking, :int # Время на выкуп брони, то же что и date_to_pay у ticket'а field :time_to_pay_reservation, :datetime # => "1100" field :cost, :money # => "true" field :after_dispatch_no_return, :bool # => nil field :passenger_birthday # => nil field :passenger_isic_number # => nil field :passenger_student_ticket # => "..." field :return_cause, [ReturnCause] # => "66.61" field :note field :is_exclusive_price, :bool parser do def money(val) Monetize.parse(val, doc[:_currency]) end def string_with_possible_attributes(val) [val].flatten.map do |value| if value.is_a? Hash value['__content__'] else value end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gillbus-0.16.10 | lib/gillbus/structs/tariff.rb |
gillbus-0.16.9 | lib/gillbus/structs/tariff.rb |
gillbus-0.16.8 | lib/gillbus/structs/tariff.rb |