Class: Glib::JsonUi::ViewBuilder::Icon
  
  
  
  
  
    - Inherits:
- 
      View
      
        
        show all
      
    
    - Defined in:
- app/helpers/glib/json_ui/view_builder.rb
 
  Instance Attribute Summary
  
  
  #json, #page
  
    
      Instance Method Summary
      collapse
    
    
  
  
  
  
  
  
  
  
  
  Methods inherited from View
  component_name
  
  
  
  
  
  
  
  
  
  
  #initialize, #props
  
    Instance Method Details
    
      
  
  
    #created  ⇒ Object 
  
  
  
  
  
    | 
278
279
280
281
282
283
284
285 | # File 'app/helpers/glib/json_ui/view_builder.rb', line 278
def created
  if @name
    json.material do
      json.name @name
      json.size @size if @size
    end
  end
end | 
 
    
      
  
  
    #name(value)  ⇒ Object 
  
  
  
  
    | 
269
270
271 | # File 'app/helpers/glib/json_ui/view_builder.rb', line 269
def name(value)
  @name = value
end | 
 
    
      
  
  
    #size(value)  ⇒ Object 
  
  
  
  
    | 
273
274
275 | # File 'app/helpers/glib/json_ui/view_builder.rb', line 273
def size(value)
  @size = value
end |