Class: Rancher::ManagementApi::Manager
- Inherits:
-
Object
- Object
- Rancher::ManagementApi::Manager
- Defined in:
- lib/rancher/management_api/manager.rb
Instance Attribute Summary collapse
-
#conn ⇒ Object
readonly
Returns the value of attribute conn.
Instance Method Summary collapse
- #create_project(name) ⇒ Object
-
#initialize(conn = nil, host: nil) ⇒ Manager
constructor
A new instance of Manager.
Constructor Details
#initialize(conn = nil, host: nil) ⇒ Manager
Returns a new instance of Manager.
6 7 8 |
# File 'lib/rancher/management_api/manager.rb', line 6 def initialize(conn = nil, host: nil) @conn = conn || ManagementApi.connection(host) end |
Instance Attribute Details
#conn ⇒ Object (readonly)
Returns the value of attribute conn.
4 5 6 |
# File 'lib/rancher/management_api/manager.rb', line 4 def conn @conn end |