Class: Sink::Models::ObjectMultiplePropertiesSameModelResponse

Inherits:
BaseModel
  • Object
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

#initialize(data = {}) ⇒ ObjectMultiplePropertiesSameModelResponse

Create a new instance of ObjectMultiplePropertiesSameModelResponse from a Hash

of raw data.

Parameters:

  • data (Hash{Symbol => Object}) (defaults to: {})

    . @option data [Object] :required_prop @option data [Object, nil] :bar @option data [Object, nil] :foo



8
# File 'lib/sink/models/object_multiple_properties_same_model_response.rb', line 8

def initialize(data = {}) = super

Instance Attribute Details

#barSink::Models::MyModel



12
# File 'lib/sink/models/object_multiple_properties_same_model_response.rb', line 12

optional :bar, -> { Sink::Models::MyModel }

#fooSink::Models::MyModel



16
# File 'lib/sink/models/object_multiple_properties_same_model_response.rb', line 16

optional :foo, -> { Sink::Models::MyModel }

#required_propSink::Models::MyModel



8
# File 'lib/sink/models/object_multiple_properties_same_model_response.rb', line 8

required :required_prop, -> { Sink::Models::MyModel }