Class: BitbucketApi::Configuration
- Inherits:
-
Object
- Object
- BitbucketApi::Configuration
- Defined in:
- lib/bitbucket-api/configuration.rb
Instance Attribute Summary collapse
-
#app_password ⇒ Object
Returns the value of attribute app_password.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
- #configure {|_self| ... } ⇒ Object
-
#initialize(**args) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(**args) ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 9 |
# File 'lib/bitbucket-api/configuration.rb', line 6 def initialize(**args) @username = args[:username] @app_password = args[:app_password] end |
Instance Attribute Details
#app_password ⇒ Object
Returns the value of attribute app_password.
3 4 5 |
# File 'lib/bitbucket-api/configuration.rb', line 3 def app_password @app_password end |
#username ⇒ Object
Returns the value of attribute username.
3 4 5 |
# File 'lib/bitbucket-api/configuration.rb', line 3 def username @username end |
Instance Method Details
#configure {|_self| ... } ⇒ Object
11 12 13 |
# File 'lib/bitbucket-api/configuration.rb', line 11 def configure yield self end |