Class: Sink::Models::ModelLevel1
- Defined in:
- lib/sink/models/model_level_1.rb
Defined Under Namespace
Classes: Depth
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ ModelLevel1
constructor
Create a new instance of ModelLevel1 from a Hash of raw data.
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.
5 |
# File 'lib/sink/models/model_level_1.rb', line 5 def initialize(data = {}) = super |
Instance Attribute Details
#depth ⇒ Symbol, Sink::Models::ModelLevel1::Depth
8 |
# File 'lib/sink/models/model_level_1.rb', line 8 optional :depth, enum: -> { Sink::Models::ModelLevel1::Depth } |