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

Version Path
gillbus-0.23.0 lib/gillbus/get_required_fields.rb
gillbus-0.22.9 lib/gillbus/get_required_fields.rb
gillbus-0.22.8 lib/gillbus/get_required_fields.rb
gillbus-0.22.7 lib/gillbus/get_required_fields.rb
gillbus-0.22.6 lib/gillbus/get_required_fields.rb
gillbus-0.22.5 lib/gillbus/get_required_fields.rb
gillbus-0.22.4 lib/gillbus/get_required_fields.rb
gillbus-0.22.3 lib/gillbus/get_required_fields.rb
gillbus-0.22.2 lib/gillbus/get_required_fields.rb
gillbus-0.22.1 lib/gillbus/get_required_fields.rb
gillbus-0.22.0 lib/gillbus/get_required_fields.rb
gillbus-0.21.0 lib/gillbus/get_required_fields.rb
gillbus-0.20.9 lib/gillbus/get_required_fields.rb