Sha256: adcd64b40487923d78a5ea8837e5e0756bb64e2794266fa05bebeb75b92d9e9f
Contents?: true
Size: 1.35 KB
Versions: 1
Compression:
Stored size: 1.35 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, :string_with_possible_attributes # => "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.kind_of? Hash value['__content__'] else value end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gillbus-0.15.3 | lib/gillbus/structs/tariff.rb |