Class: Sink::Models::ObjectWithUnionProperties

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

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

Constructor Details

#initialize(data = {}) ⇒ ObjectWithUnionProperties

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

Parameters:

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

    . @option data [Object] :bar @option data [Float, Hash, Object, String] :foo



6
# File 'lib/sink/models/object_with_union_properties.rb', line 6

def initialize(data = {}) = super

Instance Attribute Details

#barSink::Models::ObjectWithUnionProperties::Bar::UnnamedTypeWithunionParent0, Sink::Models::SimpleObject

Returns:



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

required :bar, Sink::Unknown

#fooBoolean, ...

Returns:

  • (Boolean, Float, Object, String)


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

required :foo, Sink::Unknown