Class: Gitl::GitlConfig::ProjectConfig

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(node) ⇒ ProjectConfig

Returns a new instance of ProjectConfig.



43
44
45
46
# File 'lib/config/gitl_config.rb', line 43

def initialize(node)
  @name = node['name']
  @git = node['git']
end

Instance Attribute Details

#gitObject (readonly)

Returns the value of attribute git.



41
42
43
# File 'lib/config/gitl_config.rb', line 41

def git
  @git
end

#nameObject (readonly)

Returns the value of attribute name.



40
41
42
# File 'lib/config/gitl_config.rb', line 40

def name
  @name
end

Instance Method Details

#to_dictionaryObject



48
49
50
# File 'lib/config/gitl_config.rb', line 48

def to_dictionary
  {"name"=>self.name, "git"=>self.git}
end