Exception: RubyPitaya::ParameterMissing

Inherits:
IndexError
  • Object
show all
Defined in:
lib/rubypitaya/core/parameters.rb

Defined Under Namespace

Classes: Correction

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(param, keys = nil) ⇒ ParameterMissing

Returns a new instance of ParameterMissing.



15
16
17
18
19
# File 'lib/rubypitaya/core/parameters.rb', line 15

def initialize(param, keys = nil)
  @param = param
  @keys  = keys
  super("param is missing or the value is empty: #{param}")
end

Instance Attribute Details

#keysObject (readonly)

Returns the value of attribute keys.



13
14
15
# File 'lib/rubypitaya/core/parameters.rb', line 13

def keys
  @keys
end

#paramObject (readonly)

Returns the value of attribute param.



13
14
15
# File 'lib/rubypitaya/core/parameters.rb', line 13

def param
  @param
end