Class: PartyResource::Exceptions::MissingParameter

Inherits:
Error
  • Object
show all
Defined in:
lib/party_resource/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(parameter, context) ⇒ MissingParameter

Returns a new instance of MissingParameter.



7
8
9
10
# File 'lib/party_resource/exceptions.rb', line 7

def initialize(parameter, context)
  @parameter = parameter
  @context = context
end

Instance Method Details

#to_sObject



12
13
14
# File 'lib/party_resource/exceptions.rb', line 12

def to_s
  "No value for #{@parameter} is available in #{@context}"
end