Sha256: ad16ba22937ac1656d1641aeb30fba86eecff2ae04e4e345170b46d5654d32b3

Contents?: true

Size: 255 Bytes

Versions: 1

Compression:

Stored size: 255 Bytes

Contents

module Signable
  module Query
    class Response < Struct.new(:http_response)

      def ok?
        [200, 202].include?(http_response.code.to_i)
      end

      def object
        @object ||= JSON.parse(http_response.body)
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
signable-0.0.1 lib/signable/query/response.rb