Class: DroneApi::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/drone_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Configuration

Returns a new instance of Configuration.



36
37
38
39
40
41
42
# File 'lib/drone_api.rb', line 36

def initialize(options={})
  self.client_secret = options['client_secret']
  self.client_id = options['client_id']
  self. = options['account_id']
  self.env = options['env'] || 'production'
  self.encryption_token = options['encryption_token']
end

Instance Attribute Details

#account_idObject

Returns the value of attribute account_id.



34
35
36
# File 'lib/drone_api.rb', line 34

def 
  @account_id
end

#client_idObject

Returns the value of attribute client_id.



34
35
36
# File 'lib/drone_api.rb', line 34

def client_id
  @client_id
end

#client_secretObject

Returns the value of attribute client_secret.



34
35
36
# File 'lib/drone_api.rb', line 34

def client_secret
  @client_secret
end

#current_tokenObject

Returns the value of attribute current_token.



34
35
36
# File 'lib/drone_api.rb', line 34

def current_token
  @current_token
end

#encryption_tokenObject

Returns the value of attribute encryption_token.



34
35
36
# File 'lib/drone_api.rb', line 34

def encryption_token
  @encryption_token
end

#envObject

Returns the value of attribute env.



34
35
36
# File 'lib/drone_api.rb', line 34

def env
  @env
end