Class: Sink::Models::ObjectMultiplePropertiesSameModelResponse
- Inherits:
-
BaseModel
- Object
- BaseModel
- Sink::Models::ObjectMultiplePropertiesSameModelResponse
show all
- Defined in:
- lib/sink/models/object_multiple_properties_same_model_response.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 ObjectMultiplePropertiesSameModelResponse from a Hash
of raw data.
8
|
# File 'lib/sink/models/object_multiple_properties_same_model_response.rb', line 8
def initialize(data = {}) = super
|
Instance Attribute Details
12
|
# File 'lib/sink/models/object_multiple_properties_same_model_response.rb', line 12
optional :bar, -> { Sink::Models::MyModel }
|
16
|
# File 'lib/sink/models/object_multiple_properties_same_model_response.rb', line 16
optional :foo, -> { Sink::Models::MyModel }
|
8
|
# File 'lib/sink/models/object_multiple_properties_same_model_response.rb', line 8
required :required_prop, -> { Sink::Models::MyModel }
|