Class: Gb::GbConfig::ProjectConfig

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(node) ⇒ ProjectConfig

Returns a new instance of ProjectConfig.



45
46
47
48
# File 'lib/config/gb_config.rb', line 45

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

Instance Attribute Details

#gitObject (readonly)

Returns the value of attribute git.



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

def git
  @git
end

#nameObject (readonly)

Returns the value of attribute name.



42
43
44
# File 'lib/config/gb_config.rb', line 42

def name
  @name
end

Instance Method Details

#to_dictionaryObject



50
51
52
# File 'lib/config/gb_config.rb', line 50

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