Class: CFoundry::Client

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

Instance Attribute Summary

Attributes inherited from BaseClient

#rest_client

Class Method Summary collapse

Methods inherited from BaseClient

#delete, #get, #info, #initialize, #password_score, #post, #put, #refresh_token!, #request, #request_raw, #stream_url, #token=, #trace=, #uaa

Methods included from ProxyOptions

#proxy_options_for

Constructor Details

This class inherits a constructor from CFoundry::BaseClient

Class Method Details

.get(*args) ⇒ Object



38
39
40
# File 'lib/cfoundry/client.rb', line 38

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

.new(*args) ⇒ Object



33
34
35
36
# File 'lib/cfoundry/client.rb', line 33

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