Class: Sink::Models::MyModel

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

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

Constructor Details

#initialize(data = {}) ⇒ MyModel

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

Parameters:

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

    . @option data [Hash, nil] :bar



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

def initialize(data = {}) = super

Instance Attribute Details

#barBoolean

Returns:

  • (Boolean)


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

optional :bar, Sink::BooleanModel