Class: Sink::Models::ObjectWithOneOfNullProperty
- Defined in:
- lib/sink/models/object_with_one_of_null_property.rb
Defined Under Namespace
Classes: Foo
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ ObjectWithOneOfNullProperty
constructor
Create a new instance of ObjectWithOneOfNullProperty from a Hash of raw data.
Methods inherited from BaseModel
#[], #deconstruct_keys, #inspect, #to_h, #to_s
Constructor Details
#initialize(data = {}) ⇒ ObjectWithOneOfNullProperty
Create a new instance of ObjectWithOneOfNullProperty from a Hash of raw data.
5 |
# File 'lib/sink/models/object_with_one_of_null_property.rb', line 5 def initialize(data = {}) = super |
Instance Attribute Details
#foo ⇒ Sink::Models::ObjectWithOneOfNullProperty::Foo
8 |
# File 'lib/sink/models/object_with_one_of_null_property.rb', line 8 required :foo, -> { Sink::Models::ObjectWithOneOfNullProperty::Foo } |