Class: SimpleJSONAPIClient::Relationships::Relationship
- Inherits:
-
Object
- Object
- SimpleJSONAPIClient::Relationships::Relationship
- Defined in:
- lib/simple_jsonapi_client/relationships/relationship.rb
Direct Known Subclasses
Instance Method Summary collapse
- #call(*args) ⇒ Object
-
#initialize(model_class, url_opts = {}) ⇒ Relationship
constructor
A new instance of Relationship.
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
9 10 11 |
# File 'lib/simple_jsonapi_client/relationships/relationship.rb', line 9 def call(*args) raise NotImplementedError end |