Sha256: b1027a79b83fe1c98e305cd2de9df0e66b82f822f7d61b77265e7db9c6a7c766
Contents?: true
Size: 650 Bytes
Versions: 13
Compression:
Stored size: 650 Bytes
Contents
class Gillbus module GetRequiredFields Gillbus.register self, :get_required_fields class Request < BaseRequest def path; '/online2/getRequiredFields' end attr_accessor :trip_id def params compact( tripId: trip_id, ) end end class Response < BaseResponse field :dictionary, :bool_dict field :luggage, Luggage, key: 'BAGGAGE' parser do def bool_dict(val) return unless val result = {} val.each do |k, v| result[k.downcase.to_sym] = bool(v) end result end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems