Sha256: f702931647f5506242bb3ad98fd77ffb7669b6118cf136321fd30fb1e6a432e4

Contents?: true

Size: 605 Bytes

Versions: 46

Compression:

Stored size: 605 Bytes

Contents

class Gillbus
  module GetBusImage
    Gillbus.register self, :get_bus_image

    class Request < BaseRequest
      def path; '/online2/getBusImage' end

      # busId
      # Уникальный ИД заказа, переданный при отложенной продаже.
      attr_accessor :bus_id

      def params
        compact(
          busId: bus_id,
        )
      end
    end

    class Image
      extend Fields
      include UpdateAttrs

      field :url
      field :thumb_url
    end

    class Response < BaseResponse
      field :images, [Image], key: 'IMAGE'
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
gillbus-0.17.3 lib/gillbus/get_bus_image.rb
gillbus-0.17.2 lib/gillbus/get_bus_image.rb
gillbus-0.17.1 lib/gillbus/get_bus_image.rb
gillbus-0.16.10 lib/gillbus/get_bus_image.rb
gillbus-0.16.9 lib/gillbus/get_bus_image.rb
gillbus-0.16.8 lib/gillbus/get_bus_image.rb