Sha256: 01c611673cbf3721359632927507aee2eac1f16e9a6f9623000ad8e524d06e33

Contents?: true

Size: 338 Bytes

Versions: 36

Compression:

Stored size: 338 Bytes

Contents

module JsonApiClient
  class MetaData
    include Helpers::DynamicAttributes

    attr_accessor :record_class

    def initialize(data, record_class = nil)
      self.record_class = record_class
      self.attributes = data
    end

    protected

    def key_formatter
      record_class && record_class.key_formatter
    end

  end
end

Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
json_api_client-1.23.0 lib/json_api_client/meta_data.rb
json_api_client-1.22.0 lib/json_api_client/meta_data.rb
json_api_client-1.21.1 lib/json_api_client/meta_data.rb
json_api_client-1.21.0 lib/json_api_client/meta_data.rb
json_api_client-1.20.0 lib/json_api_client/meta_data.rb
json_api_client-1.19.0 lib/json_api_client/meta_data.rb
carwow-json_api_client-1.19.0 lib/json_api_client/meta_data.rb
json_api_client-1.18.0 lib/json_api_client/meta_data.rb
json_api_client-1.17.1 lib/json_api_client/meta_data.rb
json_api_client-1.17.0 lib/json_api_client/meta_data.rb
json_api_client-1.16.1 lib/json_api_client/meta_data.rb
json_api_client-1.16.0 lib/json_api_client/meta_data.rb
json_api_client-1.15.0 lib/json_api_client/meta_data.rb
json_api_client-1.14.1 lib/json_api_client/meta_data.rb
json_api_client-1.14.0 lib/json_api_client/meta_data.rb
json_api_client-1.13.0 lib/json_api_client/meta_data.rb
json_api_client-1.12.2 lib/json_api_client/meta_data.rb
json_api_client-1.12.1 lib/json_api_client/meta_data.rb
json_api_client-1.12.0 lib/json_api_client/meta_data.rb
json_api_client-1.11.0 lib/json_api_client/meta_data.rb