Module: Giraffi::Client::MyCurrentStatus
- Included in:
- Giraffi::Client
- Defined in:
- lib/giraffi/client/my_current_status.rb
Overview
Defines methods related to the status of endpoints
Instance Method Summary collapse
-
#my_current_status(options = "") ⇒ HTTParty::Response
Returns the current status of the desired endpoint.
Instance Method Details
#my_current_status(options = "") ⇒ HTTParty::Response
Returns the current status of the desired endpoint
11 12 13 14 15 |
# File 'lib/giraffi/client/my_current_status.rb', line 11 def my_current_status(="") uri = to_uri .to_sym raise StandardError.new("The given key `#{}` is not valid.") if uri.nil? self.class.get("#{uri}/my_current_status.json") end |