Class: Sink::Models::ParentModelWithChildRef
- Inherits:
-
BaseModel
- Object
- BaseModel
- Sink::Models::ParentModelWithChildRef
show all
- Defined in:
- lib/sink/models/parent_model_with_child_ref.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods inherited from BaseModel
#[], #deconstruct_keys, #inspect, #to_h, #to_s
Constructor Details
Create a new instance of ParentModelWithChildRef from a Hash of raw data.
7
|
# File 'lib/sink/models/parent_model_with_child_ref.rb', line 7
def initialize(data = {}) = super
|
Instance Attribute Details
8
|
# File 'lib/sink/models/parent_model_with_child_ref.rb', line 8
required :from_array, Sink::ArrayOf.new(-> { Sink::Models::ChildModel })
|
12
|
# File 'lib/sink/models/parent_model_with_child_ref.rb', line 12
required :from_prop, -> { Sink::Models::ChildModel }
|
#string_prop ⇒ String
16
|
# File 'lib/sink/models/parent_model_with_child_ref.rb', line 16
optional :string_prop, String
|