Class: Compendium::Params
- Inherits:
-
OpenHash
- Object
- ActiveSupport::HashWithIndifferentAccess
- OpenHash
- Compendium::Params
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/compendium/params.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(hash = {}, options = {}) ⇒ Params
constructor
A new instance of Params.
Methods inherited from OpenHash
Constructor Details
#initialize(hash = {}, options = {}) ⇒ Params
Returns a new instance of Params.
13 14 15 16 |
# File 'lib/compendium/params.rb', line 13 def initialize(hash = {}, = {}) @options = super((hash)) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Compendium::OpenHash
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
11 12 13 |
# File 'lib/compendium/params.rb', line 11 def @options end |
Class Method Details
.model_name ⇒ Object
18 19 20 |
# File 'lib/compendium/params.rb', line 18 def self.model_name ActiveModel::Name.new(Compendium::Params, Compendium, 'compendium.params') end |