Class: TerraformEnterprise::Client
- Inherits:
-
Object
- Object
- TerraformEnterprise::Client
- Defined in:
- lib/terraform-enterprise-client.rb
Instance Attribute Summary collapse
-
#base ⇒ Object
Returns the value of attribute base.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
- #oauth_tokens ⇒ Object
- #organizations ⇒ Object
- #workspaces ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
13 14 15 |
# File 'lib/terraform-enterprise-client.rb', line 13 def initialize(={}) @request = TerraformEnterprise::API::Request.new() end |
Instance Attribute Details
#base ⇒ Object
Returns the value of attribute base.
11 12 13 |
# File 'lib/terraform-enterprise-client.rb', line 11 def base @base end |
Instance Method Details
#oauth_tokens ⇒ Object
25 26 27 |
# File 'lib/terraform-enterprise-client.rb', line 25 def oauth_tokens TerraformEnterprise::API::OAuthTokens.new(@request) end |
#organizations ⇒ Object
21 22 23 |
# File 'lib/terraform-enterprise-client.rb', line 21 def organizations TerraformEnterprise::API::Organizations.new(@request) end |
#workspaces ⇒ Object
17 18 19 |
# File 'lib/terraform-enterprise-client.rb', line 17 def workspaces TerraformEnterprise::API::Workspaces.new(@request) end |