Exception: Crowdkit::RequiredParams
- Defined in:
- lib/crowdkit/error.rb
Instance Method Summary collapse
-
#initialize(provided, required) ⇒ RequiredParams
constructor
A new instance of RequiredParams.
Methods inherited from UserError
Constructor Details
#initialize(provided, required) ⇒ RequiredParams
Returns a new instance of RequiredParams.
14 15 16 17 18 19 20 21 22 |
# File 'lib/crowdkit/error.rb', line 14 def initialize(provided, required) super( ( :problem => "Missing required parameters: #{provided.keys.join(', ')} provided for this request.", :summary => "Crowdkit checks the request parameters passed to ensure the CrowdFlower api is not hit unnecessairly.", :resolution => "Required parameters are: #{required.join(', ')}, make sure these are the ones you are using" ) ) end |