Class: Gitlabarty::Configuration
- Inherits:
-
Object
- Object
- Gitlabarty::Configuration
- Defined in:
- lib/gitlabarty/configuration.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#private_token ⇒ Object
Returns the value of attribute private_token.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(options = {url: 'https://gitlab.example.com/api/v4/projects/', id: 1, private_token: 'something'}) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(options = {url: 'https://gitlab.example.com/api/v4/projects/', id: 1, private_token: 'something'}) ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 |
# File 'lib/gitlabarty/configuration.rb', line 7 def initialize( = {url: 'https://gitlab.example.com/api/v4/projects/', id: 1, private_token: 'something'}) self.url = [:url] self.id = [:id] self.private_token = [:private_token] end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/gitlabarty/configuration.rb', line 3 def id @id end |
#private_token ⇒ Object
Returns the value of attribute private_token.
3 4 5 |
# File 'lib/gitlabarty/configuration.rb', line 3 def private_token @private_token end |
#url ⇒ Object
Returns the value of attribute url.
3 4 5 |
# File 'lib/gitlabarty/configuration.rb', line 3 def url @url end |