Class: WidgetBase
- Inherits:
-
Object
- Object
- WidgetBase
- Defined in:
- lib/domain/widget_base.rb
Overview
Widget Base class containing widget object
Instance Attribute Summary collapse
-
#widget ⇒ Object
Returns the value of attribute widget.
Instance Method Summary collapse
-
#to_json(*data) ⇒ Json
Converts Widget object to Json object.
Instance Attribute Details
#widget ⇒ Object
Returns the value of attribute widget.
7 8 9 |
# File 'lib/domain/widget_base.rb', line 7 def @widget end |
Instance Method Details
#to_json(*data) ⇒ Json
Converts Widget object to Json object
16 17 18 19 20 |
# File 'lib/domain/widget_base.rb', line 16 def to_json(*data) { widget: @widget }.to_json(*data) end |