Class: Rancher::Api::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/rancher/api/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



9
10
11
12
13
# File 'lib/rancher/api/configuration.rb', line 9

def initialize
  @url = ENV['RANCHER_URL']
  @access_key = ENV['RANCHER_ACCESS_KEY']
  @secret_key = ENV['RANCHER_SECRET_KEY']
end

Instance Attribute Details

#access_keyObject

Returns the value of attribute access_key.



5
6
7
# File 'lib/rancher/api/configuration.rb', line 5

def access_key
  @access_key
end

#secret_keyObject

Returns the value of attribute secret_key.



6
7
8
# File 'lib/rancher/api/configuration.rb', line 6

def secret_key
  @secret_key
end

#urlObject

Returns the value of attribute url.



4
5
6
# File 'lib/rancher/api/configuration.rb', line 4

def url
  @url
end

#verboseObject

Returns the value of attribute verbose.



7
8
9
# File 'lib/rancher/api/configuration.rb', line 7

def verbose
  @verbose
end