Class: Gitl::GitlConfig::GitlabConfig
- Inherits:
-
Object
- Object
- Gitl::GitlConfig::GitlabConfig
- Defined in:
- lib/config/gitl_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.
58 59 60 61 |
# File 'lib/config/gitl_config.rb', line 58 def initialize(node) @endpoint = node['endpoint'] @private_token = node['private_token'] end |
Instance Attribute Details
#endpoint ⇒ Object (readonly)
Returns the value of attribute endpoint.
55 56 57 |
# File 'lib/config/gitl_config.rb', line 55 def endpoint @endpoint end |
#private_token ⇒ Object
Returns the value of attribute private_token.
56 57 58 |
# File 'lib/config/gitl_config.rb', line 56 def private_token @private_token end |
Instance Method Details
#to_dictionary ⇒ Object
63 64 65 |
# File 'lib/config/gitl_config.rb', line 63 def to_dictionary {"endpoint"=>self.endpoint, "private_token"=>private_token} end |