class Assembla::Error::InvalidOptions

Public Class Methods

new(invalid, valid) click to toggle source
Calls superclass method Assembla::Error::ClientError::new
# File lib/assembla_api/error/invalid_options.rb, line 7
def initialize(invalid, valid)
  super(
    generate_message(
      :problem => "Invalid option #{invalid.keys.join(', ')} provided for this request.", 
      :summary => "Assembla gem checks the request parameters passed to ensure that assembla api is not hit unnecessairly and to fail fast.",
      :resolution => "Valid options are: #{valid.join(', ')}, make sure these are the ones you are using"
    )
  )
end