Class: IIFinder::Parameter

Inherits:
Object
  • Object
show all
Defined in:
lib/ii_finder/parameter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options = {})
  @name = name
  @options = options
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/ii_finder/parameter.rb', line 5

def name
  @name
end

#optionsObject

Returns the value of attribute options.



6
7
8
# File 'lib/ii_finder/parameter.rb', line 6

def options
  @options
end

Instance Method Details

#allow_blank?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/ii_finder/parameter.rb', line 13

def allow_blank?
  @options[:allow_blank]
end