Class: Gb::GbConfig::ProjectConfig
- Inherits:
-
Object
- Object
- Gb::GbConfig::ProjectConfig
- Defined in:
- lib/config/gb_config.rb
Instance Attribute Summary collapse
-
#git ⇒ Object
readonly
Returns the value of attribute git.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(node) ⇒ ProjectConfig
constructor
A new instance of ProjectConfig.
- #to_dictionary ⇒ Object
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
#git ⇒ Object (readonly)
Returns the value of attribute git.
43 44 45 |
# File 'lib/config/gb_config.rb', line 43 def git @git end |
#name ⇒ Object (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_dictionary ⇒ Object
50 51 52 |
# File 'lib/config/gb_config.rb', line 50 def to_dictionary {"name"=>self.name, "git"=>self.git} end |