Class: Sink::Resources::ResourceRefs::Parent
- Inherits:
-
Object
- Object
- Sink::Resources::ResourceRefs::Parent
- Defined in:
- lib/sink/resources/resource_refs/parent.rb,
lib/sink/resources/resource_refs/parent/child.rb
Defined Under Namespace
Classes: Child
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(client:) ⇒ Parent
constructor
A new instance of Parent.
-
#returns_parent_model_with_child_ref(opts = {}) ⇒ Sink::Models::ParentModelWithChildRef
endpoint that returns a model that has a nested reference to a child model.
Constructor Details
Instance Attribute Details
#child ⇒ Sink::Resources::ResourceRefs::Parent::Child (readonly)
8 9 10 |
# File 'lib/sink/resources/resource_refs/parent.rb', line 8 def child @child end |
Instance Method Details
#returns_parent_model_with_child_ref(opts = {}) ⇒ Sink::Models::ParentModelWithChildRef
endpoint that returns a model that has a nested reference to a child model
21 22 23 24 25 26 27 28 |
# File 'lib/sink/resources/resource_refs/parent.rb', line 21 def returns_parent_model_with_child_ref(opts = {}) req = { method: :get, path: "/resource_refs/parent_with_child_ref", model: Sink::Models::ParentModelWithChildRef } @client.request(req, opts) end |