Class: SimpleJSONAPIClient::Relationships::DataRelationshipProxy

Inherits:
SimpleJSONAPIClient::Redirection::Proxy show all
Defined in:
lib/simple_jsonapi_client/relationships/data_relationship_proxy.rb

Instance Method Summary collapse

Methods inherited from SimpleJSONAPIClient::Redirection::Proxy

#as_json, #inspect, #method_missing, #respond_to_missing?

Constructor Details

#initialize(klass, records, included, connection) ⇒ DataRelationshipProxy

Returns a new instance of DataRelationshipProxy.



6
7
8
9
10
11
# File 'lib/simple_jsonapi_client/relationships/data_relationship_proxy.rb', line 6

def initialize(klass, records, included, connection)
  @klass = klass
  @record_or_records = records
  @included = included
  @connection = connection
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class SimpleJSONAPIClient::Redirection::Proxy