Class: Glib::JsonUi::JsonUiElement

Inherits:
Object
  • Object
show all
Defined in:
app/helpers/glib/json_ui/abstract_builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json, page) ⇒ JsonUiElement

Returns a new instance of JsonUiElement.



52
53
54
55
# File 'app/helpers/glib/json_ui/abstract_builder.rb', line 52

def initialize json, page
  @json = json
  @page = page
end

Instance Attribute Details

#jsonObject (readonly)

Returns the value of attribute json.



50
51
52
# File 'app/helpers/glib/json_ui/abstract_builder.rb', line 50

def json
  @json
end

#pageObject (readonly)

Returns the value of attribute page.



50
51
52
# File 'app/helpers/glib/json_ui/abstract_builder.rb', line 50

def page
  @page
end

Instance Method Details

#parse(args = {}) ⇒ Object



57
58
59
60
61
62
63
64
65
66
67
# File 'app/helpers/glib/json_ui/abstract_builder.rb', line 57

def parse args = {}
  @args = args
  
  if args.is_a? Hash
    args.each do |k, v|
      send(k, v)
    end
  end
  
  created
end