Method: JsonApiClient::Implementation#initialize

Defined in:
lib/json_api_client/implementation.rb

#initialize(data) ⇒ Implementation

Returns a new instance of Implementation.



5
6
7
8
9
10
# File 'lib/json_api_client/implementation.rb', line 5

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 = .new(data.fetch("meta", {}))
end