lib/lurker/endpoint.rb in lurker-0.5.1 vs lib/lurker/endpoint.rb in lurker-0.5.2
- old
+ new
@@ -21,9 +21,13 @@
@current_scaffold = Lurker::EndpointScaffold.new(
"#{endpoint_path}.new", extensions, service
)
end
+ def indexed?
+ prefix.present? && description.present?
+ end
+
def consume!(request_params, response_params, status_code, successful=true)
consume_request(request_params, successful)
consume_response(response_params, status_code, successful)
raise_errors!
end