Class: Sink::Models::Widget

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

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

Constructor Details

#initialize(data = {}) ⇒ Widget

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

Parameters:

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

    . @option data [Integer] :id The numeric unique ID for this widget.



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

def initialize(data = {}) = super

Instance Attribute Details

#idInteger

The numeric unique ID for this widget.

Returns:

  • (Integer)


9
# File 'lib/sink/models/widget.rb', line 9

required :id, Integer