Class: WidgetBase
- Inherits:
-
Object
- Object
- WidgetBase
- Defined in:
- lib/domain/widget_base.rb
Instance Attribute Summary collapse
-
#widget ⇒ Object
Returns the value of attribute widget.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#widget ⇒ Object
Returns the value of attribute widget.
3 4 5 |
# File 'lib/domain/widget_base.rb', line 3 def @widget end |
Class Method Details
.json_create(o) ⇒ Object
11 12 13 14 15 |
# File 'lib/domain/widget_base.rb', line 11 def self.json_create(o) a_from_json = new a_from_json. = o['widget'] a_from_json end |
Instance Method Details
#to_json(*a) ⇒ Object
5 6 7 8 9 |
# File 'lib/domain/widget_base.rb', line 5 def to_json(*a) { widget: @widget }.to_json(*a) end |