Class: ParamsKeeper::Config
- Inherits:
-
Object
- Object
- ParamsKeeper::Config
- Defined in:
- lib/params_keeper/config.rb
Instance Attribute Summary collapse
-
#for ⇒ Object
Returns the value of attribute for.
-
#keys ⇒ Object
Returns the value of attribute keys.
-
#to ⇒ Object
Returns the value of attribute to.
-
#url_options ⇒ Object
Returns the value of attribute url_options.
Instance Method Summary collapse
-
#initialize(keys, options = {}) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(keys, options = {}) ⇒ Config
Returns a new instance of Config.
7 8 9 10 11 12 |
# File 'lib/params_keeper/config.rb', line 7 def initialize(keys, = {}) @keys = Array(keys) @to = Array([:to]) @for = Array([:for] || :hash) @url_options = [:url_options] || {} end |
Instance Attribute Details
#for ⇒ Object
Returns the value of attribute for.
5 6 7 |
# File 'lib/params_keeper/config.rb', line 5 def for @for end |
#keys ⇒ Object
Returns the value of attribute keys.
5 6 7 |
# File 'lib/params_keeper/config.rb', line 5 def keys @keys end |
#to ⇒ Object
Returns the value of attribute to.
5 6 7 |
# File 'lib/params_keeper/config.rb', line 5 def to @to end |
#url_options ⇒ Object
Returns the value of attribute url_options.
5 6 7 |
# File 'lib/params_keeper/config.rb', line 5 def @url_options end |