Class: Sink::Models::ModelLevel1

Inherits:
BaseModel show all
Defined in:
lib/sink/models/model_level_1.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 = {}) ⇒ ModelLevel1

Create a new instance of ModelLevel1 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_1.rb', line 5

def initialize(data = {}) = super

Instance Attribute Details

#depthSymbol, Sink::Models::ModelLevel1::Depth



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

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