Exception: Apipie::NoDocumentedMethod

Inherits:
Error
  • Object
show all
Defined in:
lib/apipie/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(controller_name, method_name) ⇒ NoDocumentedMethod

Returns a new instance of NoDocumentedMethod.



77
78
79
80
# File 'lib/apipie/errors.rb', line 77

def initialize(controller_name, method_name)
  @method_name = method_name
  @controller_name = controller_name
end

Instance Method Details

#to_sObject



82
83
84
# File 'lib/apipie/errors.rb', line 82

def to_s
  "There is no documented method #{@controller_name}##{@method_name}"
end