Class: Sink::Models::ModelLevel3

Inherits:
BaseModel show all
Defined in:
lib/sink/models/model_level_3.rb

Defined Under Namespace

Classes: Depth

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

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

Constructor Details

#initialize(data = {}) ⇒ ModelLevel3

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

Parameters:

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

    . @option data [String, nil] :depth



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

def initialize(data = {}) = super

Instance Attribute Details

#depthSymbol, Sink::Models::ModelLevel3::Depth



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

optional :depth, enum: -> { Sink::Models::ModelLevel3::Depth }