Exception: RailsParam::Param::InvalidParameterError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rails_param/param.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



7
8
9
# File 'lib/rails_param/param.rb', line 7

def options
  @options
end

#paramObject

Returns the value of attribute param.



7
8
9
# File 'lib/rails_param/param.rb', line 7

def param
  @param
end

Instance Method Details

#messageObject



9
10
11
12
# File 'lib/rails_param/param.rb', line 9

def message
  return options[:message] if options.is_a?(Hash) && options.key?(:message)
  super
end