Class: CFoundry::Client
- Inherits:
-
BaseClient
- Object
- BaseClient
- CFoundry::Client
- Defined in:
- lib/cfoundry/client.rb
Constant Summary
Constants inherited from BaseClient
Instance Attribute Summary
Attributes inherited from BaseClient
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from BaseClient
#initialize, #request_path, #token_data
Constructor Details
This class inherits a constructor from CFoundry::BaseClient
Class Method Details
.new(*args) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/cfoundry/client.rb', line 8 def self.new(*args) target, _ = args base = super(target) case base.info[:version] when 2 CFoundry::V2::Client.new(*args) else CFoundry::V1::Client.new(*args) end end |
Instance Method Details
#info ⇒ Object
21 22 23 |
# File 'lib/cfoundry/client.rb', line 21 def info get("info", nil => :json) end |