Sha256: 7bd6df7f3fb4b783c6b3dbaaf3ced81f919e83720a75a96443b9d1539991c5b0

Contents?: true

Size: 323 Bytes

Versions: 12

Compression:

Stored size: 323 Bytes

Contents

module Fire
  module Connection
    require 'active_support/all'

    class Response
      attr_reader :response
      delegate :status, to: :response

      def initialize(response)
        @response = response
      end

      def body
        JSON.parse(response.body, :quirks_mode => true)
      end

    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
fire-model-0.0.16 lib/connection/response.rb
fire-model-0.0.15 lib/connection/response.rb
fire-model-0.0.14 lib/connection/response.rb
fire-model-0.0.12 lib/connection/response.rb
fire-model-0.0.11 lib/connection/response.rb
fire-model-0.0.10 lib/connection/response.rb
fire-model-0.0.9 lib/connection/response.rb
fire-model-0.0.8 lib/connection/response.rb
fire-model-0.0.7 lib/connection/response.rb
fire-model-0.0.6 lib/connection/response.rb
fire-model-0.0.2 lib/connection/response.rb
fire-model-0.0.1 lib/connection/response.rb