Class: JFoundry::Client

Inherits:
BaseClient show all
Defined in:
lib/jfoundry/client.rb

Instance Attribute Summary

Attributes inherited from BaseClient

#rest_client

Class Method Summary collapse

Methods inherited from BaseClient

#delete, #get, #info, #initialize, #post, #put, #request, #request_raw, #stream_url, #trace=

Methods included from ProxyOptions

#proxy_options_for

Constructor Details

This class inherits a constructor from JFoundry::BaseClient

Class Method Details

.get(*args) ⇒ Object



35
36
37
# File 'lib/jfoundry/client.rb', line 35

def self.get(*args)
  JFoundry::V2::Client.new(*args).tap { |client| client.info }
end

.new(*args) ⇒ Object



30
31
32
33
# File 'lib/jfoundry/client.rb', line 30

def self.new(*args)
  warn "DEPRECATION WARNING: Please use JFoundry::Client.get instead of JFoundry::Client.new"
  get(*args)
end