Class: ActiveAdmin::ActionItem
- Inherits:
 - 
      Object
      
        
- Object
 - ActiveAdmin::ActionItem
 
 
- Includes:
 - OptionalDisplay
 
- Defined in:
 - lib/active_admin/resource/action_items.rb
 
Overview
Model class to store the data for ActionItems
Instance Attribute Summary collapse
- 
  
    
      #block  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute block.
 - 
  
    
      #name  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute name.
 
Instance Method Summary collapse
- #html_class ⇒ Object
 - 
  
    
      #initialize(name, options = {}, &block)  ⇒ ActionItem 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of ActionItem.
 - #priority ⇒ Object
 
Methods included from OptionalDisplay
Constructor Details
#initialize(name, options = {}, &block) ⇒ ActionItem
Returns a new instance of ActionItem.
      105 106 107 108 109 110  | 
    
      # File 'lib/active_admin/resource/action_items.rb', line 105 def initialize(name, = {}, &block) @name = name @options = @block = block end  | 
  
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block.
      103 104 105  | 
    
      # File 'lib/active_admin/resource/action_items.rb', line 103 def block @block end  | 
  
#name ⇒ Object
Returns the value of attribute name.
      103 104 105  | 
    
      # File 'lib/active_admin/resource/action_items.rb', line 103 def name @name end  | 
  
Instance Method Details
#html_class ⇒ Object
      112 113 114  | 
    
      # File 'lib/active_admin/resource/action_items.rb', line 112 def html_class "action_item #{@options[:class]}".rstrip end  | 
  
#priority ⇒ Object
      116 117 118  | 
    
      # File 'lib/active_admin/resource/action_items.rb', line 116 def priority @options[:priority] || 10 end  |