Class: Sink::Resources::Parent

Inherits:
Object
  • Object
show all
Defined in:
lib/sink/resources/parent.rb,
lib/sink/resources/parent/child.rb

Defined Under Namespace

Classes: Child

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Parent

Returns a new instance of Parent.

Parameters:



12
13
14
15
# File 'lib/sink/resources/parent.rb', line 12

def initialize(client:)
  @client = client
  @child = Sink::Resources::Parent::Child.new(client: client)
end

Instance Attribute Details

#childSink::Resources::Parent::Child (readonly)

Some children can be very large For example, the children of Godzilla



9
10
11
# File 'lib/sink/resources/parent.rb', line 9

def child
  @child
end