Class: Gitl::GitlConfig::ProjectConfig
- Inherits:
-
Object
- Object
- Gitl::GitlConfig::ProjectConfig
- Defined in:
- lib/config/gitl_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.
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
#git ⇒ Object (readonly)
Returns the value of attribute git.
41 42 43 |
# File 'lib/config/gitl_config.rb', line 41 def git @git end |
#name ⇒ Object (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_dictionary ⇒ Object
48 49 50 |
# File 'lib/config/gitl_config.rb', line 48 def to_dictionary {"name"=>self.name, "git"=>self.git} end |