class WidgetBase
Attributes
widget[RW]
Public Class Methods
json_create(o)
click to toggle source
# File lib/domain/widget_base.rb, line 11 def self.json_create(o) a_from_json = new a_from_json.widget = o['widget'] a_from_json end
Public Instance Methods
to_json(*a)
click to toggle source
# File lib/domain/widget_base.rb, line 5 def to_json(*a) { widget: @widget }.to_json(*a) end