Class: Gb::GbConfig::GitlabConfig

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#endpointObject (readonly)

Returns the value of attribute endpoint.



57
58
59
# File 'lib/config/gb_config.rb', line 57

def endpoint
  @endpoint
end

#private_tokenObject

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_dictionaryObject



65
66
67
# File 'lib/config/gb_config.rb', line 65

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