Class: Gitl::GitlConfig::GitlabConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/config/gitl_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#endpointObject (readonly)

Returns the value of attribute endpoint.



55
56
57
# File 'lib/config/gitl_config.rb', line 55

def endpoint
  @endpoint
end

#private_tokenObject

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_dictionaryObject



63
64
65
# File 'lib/config/gitl_config.rb', line 63

def to_dictionary
  {"endpoint"=>self.endpoint, "private_token"=>private_token}
end