Class: Sink::Models::ObjectWithChildRef
- Defined in:
- lib/sink/models/object_with_child_ref.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ ObjectWithChildRef
constructor
Create a new instance of ObjectWithChildRef from a Hash of raw data.
Methods inherited from BaseModel
#[], #deconstruct_keys, #inspect, #to_h, #to_s
Constructor Details
#initialize(data = {}) ⇒ ObjectWithChildRef
Create a new instance of ObjectWithChildRef from a Hash of raw data.
6 |
# File 'lib/sink/models/object_with_child_ref.rb', line 6 def initialize(data = {}) = super |
Instance Attribute Details
#bar ⇒ Sink::Models::SimpleObject
8 |
# File 'lib/sink/models/object_with_child_ref.rb', line 8 optional :bar, -> { Sink::Models::SimpleObject } |
#foo ⇒ String
12 |
# File 'lib/sink/models/object_with_child_ref.rb', line 12 optional :foo, String |