Sha256: 61d0b6389748dfdd163e1db0120a7f4726f3e4c83e29d402ccf1820e5fc2c3e9

Contents?: true

Size: 480 Bytes

Versions: 4

Compression:

Stored size: 480 Bytes

Contents

module CandyCheck
  module PlayStore
    module ProductAcknowledgements
      class Response
        def initialize(result:, error_data:)
          @result = result
          @error_data = error_data
        end

        def acknowledged?
          !!result
        end

        def error
          return unless error_data

          { status_code: error_data.status_code, body: error_data.body }
        end

        attr_reader :result, :error_data
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
candy_check-0.6.0 lib/candy_check/play_store/product_acknowledgements/response.rb
candy_check-0.5.0 lib/candy_check/play_store/product_acknowledgements/response.rb
candy_check-0.4.0 lib/candy_check/play_store/product_acknowledgements/response.rb
candy_check-0.3.0 lib/candy_check/play_store/product_acknowledgements/response.rb