Class: Compendium::Params

Inherits:
OpenHash
  • Object
show all
Defined in:
lib/compendium/params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from OpenHash

[], #dup

Constructor Details

#initialize(hash = {}, options = {}) ⇒ Params

Returns a new instance of Params.



10
11
12
13
# File 'lib/compendium/params.rb', line 10

def initialize(hash = {}, options = {})
  @options = options
  super(prepare_hash_from_options(hash))
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Compendium::OpenHash

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



8
9
10
# File 'lib/compendium/params.rb', line 8

def options
  @options
end