Class: PartyResource::Exceptions::MissingParameter
- Defined in:
- lib/party_resource/exceptions.rb
Instance Method Summary collapse
-
#initialize(parameter, context) ⇒ MissingParameter
constructor
A new instance of MissingParameter.
- #to_s ⇒ Object
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_s ⇒ Object
12 13 14 |
# File 'lib/party_resource/exceptions.rb', line 12 def to_s "No value for #{@parameter} is available in #{@context}" end |