Module: Croesus::ClassMethods

Defined in:
lib/croesus/web_client/web_client.rb

Overview

Class level methods to let you configure your api client.

Instance Method Summary collapse

Instance Method Details

#endpoint(value = nil) ⇒ Object

When present, lets you specify the api for the given client.

Examples:

Setting a string endpoint endpoint ‘/resources/json/delphix’

Unsetting the string endpoint endpoint nil

Parameters:

  • value (String, nil) (defaults to: nil)

    the endpoint to use.



149
150
151
# File 'lib/croesus/web_client/web_client.rb', line 149

def endpoint(value = nil)
  define_method(:endpoint) { value }
end