Class: IIFinder::Parameter
- Inherits:
-
Object
- Object
- IIFinder::Parameter
- Defined in:
- lib/ii_finder/parameter.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
- #allow_blank? ⇒ Boolean
-
#initialize(name, options = {}) ⇒ Parameter
constructor
A new instance of Parameter.
Constructor Details
#initialize(name, options = {}) ⇒ Parameter
Returns a new instance of Parameter.
8 9 10 11 |
# File 'lib/ii_finder/parameter.rb', line 8 def initialize(name, = {}) @name = name @options = end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/ii_finder/parameter.rb', line 5 def name @name end |
#options ⇒ Object
Returns the value of attribute options.
6 7 8 |
# File 'lib/ii_finder/parameter.rb', line 6 def @options end |
Instance Method Details
#allow_blank? ⇒ Boolean
13 14 15 |
# File 'lib/ii_finder/parameter.rb', line 13 def allow_blank? @options[:allow_blank] end |