Sha256: 48b3c3d442903eba73d0ef8a964a1159e5c8c20f6045fc12963e7b682ad8409a

Contents?: true

Size: 350 Bytes

Versions: 47

Compression:

Stored size: 350 Bytes

Contents

module JsonApiClient
  class Implementation
    attr_reader :version, :meta

    def initialize(data)
      # If the version member is not present, clients should assume the server implements at least version 1.0 of the specification.
      @version = data.fetch("version", "1.0")

      @meta = MetaData.new(data.fetch("meta", {}))
    end
  end
end

Version data entries

47 entries across 47 versions & 2 rubygems

Version Path
json_api_client-1.10.0 lib/json_api_client/implementation.rb
json_api_client-1.9.0 lib/json_api_client/implementation.rb
json_api_client-1.8.0 lib/json_api_client/implementation.rb
json_api_client-1.7.0 lib/json_api_client/implementation.rb
json_api_client-1.6.4 lib/json_api_client/implementation.rb
json_api_client-1.6.3 lib/json_api_client/implementation.rb
json_api_client-1.6.2 lib/json_api_client/implementation.rb
json_api_client-1.6.1 lib/json_api_client/implementation.rb
json_api_client-1.6.0 lib/json_api_client/implementation.rb
json_api_client-1.5.3 lib/json_api_client/implementation.rb
json_api_client-1.5.2 lib/json_api_client/implementation.rb
json_api_client-1.5.1 lib/json_api_client/implementation.rb
json_api_client-1.5.0 lib/json_api_client/implementation.rb
json_api_client-1.4.0 lib/json_api_client/implementation.rb
json_api_client-1.3.0 lib/json_api_client/implementation.rb
json_api_client-1.2.0 lib/json_api_client/implementation.rb
json_api_client-1.1.1 lib/json_api_client/implementation.rb
json_api_client-1.1.0 lib/json_api_client/implementation.rb
json_api_client-1.0.2 lib/json_api_client/implementation.rb
json_api_client-1.0.1 lib/json_api_client/implementation.rb