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

Instance Method Details

#my_current_status(options = "") ⇒ HTTParty::Response

Returns the current status of the desired endpoint

Parameters:

  • options (String) (defaults to: "")

    The alias string of the desired endpoint

Returns:

  • (HTTParty::Response)

Raises:

  • (StandardError)

Requires APIKEY?:

  • No



11
12
13
14
15
# File 'lib/giraffi/client/my_current_status.rb', line 11

def my_current_status(options="")
  uri = to_uri options.to_sym
  raise StandardError.new("The given key `#{options}` is not valid.") if uri.nil?
  self.class.get("#{uri}/my_current_status.json")
end