Method: PCO::API::Endpoint#respond_to?
- Defined in:
- lib/pco/api/endpoint.rb
#respond_to?(method_name, _include_all = false) ⇒ Boolean
35 36 37 38 39 40 41 42 43 44 |
# File 'lib/pco/api/endpoint.rb', line 35 def respond_to?(method_name, _include_all = false) endpoint = _build_endpoint(method_name.to_s) begin endpoint.get rescue Errors::NotFound false else true end end |