Class: Fulmar::Domain::Model::Project

Inherits:
Object
  • Object
show all
Defined in:
lib/fulmar/domain/model/project.rb

Overview

Provides information about the current project

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#authorsObject (readonly)

Returns the value of attribute authors.



6
7
8
# File 'lib/fulmar/domain/model/project.rb', line 6

def authors
  @authors
end

#configObject (readonly)

Returns the value of attribute config.



6
7
8
# File 'lib/fulmar/domain/model/project.rb', line 6

def config
  @config
end

#descriptionObject (readonly)

Returns the value of attribute description.



6
7
8
# File 'lib/fulmar/domain/model/project.rb', line 6

def description
  @description
end

#licenseObject (readonly)

Returns the value of attribute license.



6
7
8
# File 'lib/fulmar/domain/model/project.rb', line 6

def license
  @license
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/fulmar/domain/model/project.rb', line 6

def name
  @name
end