Class: DroneApi::Configuration
- Inherits:
-
Object
- Object
- DroneApi::Configuration
- Defined in:
- lib/drone_api.rb
Instance Attribute Summary collapse
-
#account_id ⇒ Object
Returns the value of attribute account_id.
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#client_secret ⇒ Object
Returns the value of attribute client_secret.
-
#current_token ⇒ Object
Returns the value of attribute current_token.
-
#encryption_token ⇒ Object
Returns the value of attribute encryption_token.
-
#env ⇒ Object
Returns the value of attribute env.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Configuration
constructor
A new instance of Configuration.
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(={}) self.client_secret = ['client_secret'] self.client_id = ['client_id'] self.account_id = ['account_id'] self.env = ['env'] || 'production' self.encryption_token = ['encryption_token'] end |
Instance Attribute Details
#account_id ⇒ Object
Returns the value of attribute account_id.
34 35 36 |
# File 'lib/drone_api.rb', line 34 def account_id @account_id end |
#client_id ⇒ Object
Returns the value of attribute client_id.
34 35 36 |
# File 'lib/drone_api.rb', line 34 def client_id @client_id end |
#client_secret ⇒ Object
Returns the value of attribute client_secret.
34 35 36 |
# File 'lib/drone_api.rb', line 34 def client_secret @client_secret end |
#current_token ⇒ Object
Returns the value of attribute current_token.
34 35 36 |
# File 'lib/drone_api.rb', line 34 def current_token @current_token end |
#encryption_token ⇒ Object
Returns the value of attribute encryption_token.
34 35 36 |
# File 'lib/drone_api.rb', line 34 def encryption_token @encryption_token end |
#env ⇒ Object
Returns the value of attribute env.
34 35 36 |
# File 'lib/drone_api.rb', line 34 def env @env end |