Class: Releaf::ControllerGroupDefinition
- Inherits:
- 
      Object
      
        - Object
- Releaf::ControllerGroupDefinition
 
- Defined in:
- app/lib/releaf/controller_group_definition.rb
Instance Attribute Summary collapse
- 
  
    
      #controllers  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute controllers. 
- 
  
    
      #name  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute name. 
Instance Method Summary collapse
- 
  
    
      #initialize(options)  ⇒ ControllerGroupDefinition 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of ControllerGroupDefinition. 
- #localized_name ⇒ Object
Constructor Details
#initialize(options) ⇒ ControllerGroupDefinition
Returns a new instance of ControllerGroupDefinition.
| 4 5 6 7 | # File 'app/lib/releaf/controller_group_definition.rb', line 4 def initialize() self.name = [:name] self.controllers = [:items].map{|option| Releaf::ControllerDefinition.new(option) } end | 
Instance Attribute Details
#controllers ⇒ Object
Returns the value of attribute controllers.
| 2 3 4 | # File 'app/lib/releaf/controller_group_definition.rb', line 2 def controllers @controllers end | 
#name ⇒ Object
Returns the value of attribute name.
| 2 3 4 | # File 'app/lib/releaf/controller_group_definition.rb', line 2 def name @name end | 
Instance Method Details
#localized_name ⇒ Object
| 9 10 11 | # File 'app/lib/releaf/controller_group_definition.rb', line 9 def localized_name I18n.t(name, scope: "admin.controllers") end |