Class: Gb::GbConfig::GitlabConfig
- Inherits:
-
Object
- Object
- Gb::GbConfig::GitlabConfig
- Defined in:
- lib/config/gb_config.rb
Instance Attribute Summary collapse
-
#endpoint ⇒ Object
readonly
Returns the value of attribute endpoint.
-
#private_token ⇒ Object
Returns the value of attribute private_token.
Instance Method Summary collapse
-
#initialize(node) ⇒ GitlabConfig
constructor
A new instance of GitlabConfig.
- #to_dictionary ⇒ Object
Constructor Details
#initialize(node) ⇒ GitlabConfig
Returns a new instance of GitlabConfig.
60 61 62 63 |
# File 'lib/config/gb_config.rb', line 60 def initialize(node) @endpoint = node['endpoint'] @private_token = node['private_token'] end |
Instance Attribute Details
#endpoint ⇒ Object (readonly)
Returns the value of attribute endpoint.
57 58 59 |
# File 'lib/config/gb_config.rb', line 57 def endpoint @endpoint end |
#private_token ⇒ Object
Returns the value of attribute private_token.
58 59 60 |
# File 'lib/config/gb_config.rb', line 58 def private_token @private_token end |
Instance Method Details
#to_dictionary ⇒ Object
65 66 67 |
# File 'lib/config/gb_config.rb', line 65 def to_dictionary {"endpoint"=>self.endpoint, "private_token"=>private_token} end |