Class: ActionController::ParamsWrapper::Options
- Defined in:
- actionpack/lib/action_controller/metal/params_wrapper.rb
Overview
:nodoc:
Instance Attribute Summary collapse
- 
  
    
      #exclude  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute exclude. 
- 
  
    
      #format  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute format. 
- 
  
    
      #include  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute include. 
- 
  
    
      #klass  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute klass. 
- 
  
    
      #model  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute model. 
- 
  
    
      #name  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute name. 
Class Method Summary collapse
Instance Method Summary collapse
- 
  
    
      #initialize(name, format, include, exclude, klass, model)  ⇒ Options 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    :nodoc:. 
Methods inherited from Struct
Constructor Details
#initialize(name, format, include, exclude, klass, model) ⇒ Options
:nodoc:
| 97 98 99 100 101 102 | # File 'actionpack/lib/action_controller/metal/params_wrapper.rb', line 97 def initialize(name, format, include, exclude, klass, model) # :nodoc: super @mutex = Mutex.new @include_set = include @name_set = name end | 
Instance Attribute Details
#exclude ⇒ Object
Returns the value of attribute exclude
| 88 89 90 | # File 'actionpack/lib/action_controller/metal/params_wrapper.rb', line 88 def exclude @exclude end | 
#format ⇒ Object
Returns the value of attribute format
| 88 89 90 | # File 'actionpack/lib/action_controller/metal/params_wrapper.rb', line 88 def format @format end | 
#include ⇒ Object
Returns the value of attribute include
| 88 89 90 | # File 'actionpack/lib/action_controller/metal/params_wrapper.rb', line 88 def include @include end | 
#klass ⇒ Object
Returns the value of attribute klass
| 88 89 90 | # File 'actionpack/lib/action_controller/metal/params_wrapper.rb', line 88 def klass @klass end | 
#model ⇒ Object
Returns the value of attribute model
| 88 89 90 | # File 'actionpack/lib/action_controller/metal/params_wrapper.rb', line 88 def model @model end | 
#name ⇒ Object
Returns the value of attribute name
| 88 89 90 | # File 'actionpack/lib/action_controller/metal/params_wrapper.rb', line 88 def name @name end | 
Class Method Details
.from_hash(hash) ⇒ Object
| 89 90 91 92 93 94 95 | # File 'actionpack/lib/action_controller/metal/params_wrapper.rb', line 89 def self.from_hash(hash) name = hash[:name] format = Array(hash[:format]) include = hash[:include] && Array(hash[:include]).collect(&:to_s) exclude = hash[:exclude] && Array(hash[:exclude]).collect(&:to_s) new name, format, include, exclude, nil, nil end |