Class: Sink::Models::ObjectWithAnyOfNullProperty

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/sink/models/object_with_any_of_null_property.rb

Defined Under Namespace

Classes: Foo

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#[], #deconstruct_keys, #inspect, #to_h, #to_s

Constructor Details

#initialize(data = {}) ⇒ ObjectWithAnyOfNullProperty

Create a new instance of ObjectWithAnyOfNullProperty from a Hash of raw data.

Parameters:

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

    . @option data [Object] :foo



5
# File 'lib/sink/models/object_with_any_of_null_property.rb', line 5

def initialize(data = {}) = super

Instance Attribute Details

#fooSink::Models::ObjectWithAnyOfNullProperty::Foo



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

required :foo, -> { Sink::Models::ObjectWithAnyOfNullProperty::Foo }