Class: Fulmar::Domain::Model::Project
- Inherits:
-
Object
- Object
- Fulmar::Domain::Model::Project
- Defined in:
- lib/fulmar/domain/model/project.rb
Overview
Provides information about the current project
Instance Attribute Summary collapse
-
#authors ⇒ Object
readonly
Returns the value of attribute authors.
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#license ⇒ Object
readonly
Returns the value of attribute license.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(config) ⇒ Project
constructor
A new instance of Project.
Constructor Details
#initialize(config) ⇒ Project
Returns a new instance of Project.
8 9 10 11 12 13 14 |
# File 'lib/fulmar/domain/model/project.rb', line 8 def initialize(config) @name = config[:name] || '<unnamed>' @description = config[:description] || '<no description>' @license = config[:license] || 'proprietary' @authors = config[:authors] || [] @config = config[:config] || {} end |
Instance Attribute Details
#authors ⇒ Object (readonly)
Returns the value of attribute authors.
6 7 8 |
# File 'lib/fulmar/domain/model/project.rb', line 6 def @authors end |
#config ⇒ Object (readonly)
Returns the value of attribute config.
6 7 8 |
# File 'lib/fulmar/domain/model/project.rb', line 6 def config @config end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
6 7 8 |
# File 'lib/fulmar/domain/model/project.rb', line 6 def description @description end |
#license ⇒ Object (readonly)
Returns the value of attribute license.
6 7 8 |
# File 'lib/fulmar/domain/model/project.rb', line 6 def license @license end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/fulmar/domain/model/project.rb', line 6 def name @name end |