Class: Sink::Resources::ModelReferencedInParentAndChild::Child
- Inherits:
-
Object
- Object
- Sink::Resources::ModelReferencedInParentAndChild::Child
- Defined in:
- lib/sink/resources/model_referenced_in_parent_and_child/child.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Child
constructor
A new instance of Child.
- #retrieve(opts = {}) ⇒ Sink::Models::ModelReferencedInParentAndChild
Constructor Details
#initialize(client:) ⇒ Child
Returns a new instance of Child.
8 9 10 |
# File 'lib/sink/resources/model_referenced_in_parent_and_child/child.rb', line 8 def initialize(client:) @client = client end |
Instance Method Details
#retrieve(opts = {}) ⇒ Sink::Models::ModelReferencedInParentAndChild
15 16 17 18 19 20 21 22 |
# File 'lib/sink/resources/model_referenced_in_parent_and_child/child.rb', line 15 def retrieve(opts = {}) req = { method: :get, path: "/model_referenced_in_parent_and_child/child", model: Sink::Models::ModelReferencedInParentAndChild } @client.request(req, opts) end |