Class: SimpleJSONAPIClient::Relationships::Relationship

Inherits:
Object
  • Object
show all
Defined in:
lib/simple_jsonapi_client/relationships/relationship.rb

Direct Known Subclasses

HasManyRelationship, HasOneRelationship

Instance Method Summary collapse

Constructor Details

#initialize(model_class, url_opts = {}) ⇒ Relationship

Returns a new instance of Relationship.



4
5
6
7
# File 'lib/simple_jsonapi_client/relationships/relationship.rb', line 4

def initialize(model_class, url_opts = {})
  @model_class = model_class
  @url_opts = url_opts
end

Instance Method Details

#call(*args) ⇒ Object

Raises:

  • (NotImplementedError)


9
10
11
# File 'lib/simple_jsonapi_client/relationships/relationship.rb', line 9

def call(*args)
  raise NotImplementedError
end