Sha256: 5b42615d87d119ce868bde88123e726673e1f70978bfd478955818526d550938

Contents?: true

Size: 250 Bytes

Versions: 8

Compression:

Stored size: 250 Bytes

Contents

# frozen_string_literal: true

require 'hashie/mash'

module GQLi
  # Response object wrapper
  class Response
    attr_reader :data, :query

    def initialize(data, query)
      @data = Hashie::Mash.new(data)
      @query = query
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
gqli-1.0.0 lib/gqli/response.rb
gqli-0.6.1 lib/gqli/response.rb
gqli-0.6.0 lib/gqli/response.rb
gqli-0.5.0 lib/gqli/response.rb
gqli-0.4.0 lib/gqli/response.rb
gqli-0.3.0 lib/gqli/response.rb
gqli-0.2.0 lib/gqli/response.rb
gqli-0.1.0 lib/gqli/response.rb