Exception: DoctorSwagger::Parameter::InvalidType

Inherits:
StandardError
  • Object
show all
Defined in:
lib/doctor_swagger/parameter.rb

Instance Method Summary collapse

Constructor Details

#initialize(bad_type) ⇒ InvalidType

Returns a new instance of InvalidType.


5
6
7
# File 'lib/doctor_swagger/parameter.rb', line 5

def initialize(bad_type)
  @message = "The type of '#{bad_type}' is not valid. Choose from #{ALLOWED_TYPES.inspect}"
end