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
- #teams ⇒ Object
- #variables ⇒ Object
- #workspaces ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
15 16 17 |
# File 'lib/terraform-enterprise-client.rb', line 15 def initialize(={}) @request = TerraformEnterprise::API::Request.new() end |
Instance Attribute Details
#base ⇒ Object
Returns the value of attribute base.
13 14 15 |
# File 'lib/terraform-enterprise-client.rb', line 13 def base @base end |
Instance Method Details
#oauth_tokens ⇒ Object
19 20 21 |
# File 'lib/terraform-enterprise-client.rb', line 19 def oauth_tokens TerraformEnterprise::API::OAuthTokens.new(@request) end |
#organizations ⇒ Object
23 24 25 |
# File 'lib/terraform-enterprise-client.rb', line 23 def organizations TerraformEnterprise::API::Organizations.new(@request) end |
#teams ⇒ Object
27 28 29 |
# File 'lib/terraform-enterprise-client.rb', line 27 def teams TerraformEnterprise::API::Teams.new(@request) end |
#variables ⇒ Object
31 32 33 |
# File 'lib/terraform-enterprise-client.rb', line 31 def variables TerraformEnterprise::API::Variables.new(@request) end |
#workspaces ⇒ Object
35 36 37 |
# File 'lib/terraform-enterprise-client.rb', line 35 def workspaces TerraformEnterprise::API::Workspaces.new(@request) end |