Class: StatModule::Process
Instance Method Summary collapse
- #description ⇒ Object
- #description=(description) ⇒ Object
- #email ⇒ Object
- #email=(email) ⇒ Object
-
#initialize(name) ⇒ Process
constructor
A new instance of Process.
- #maintainer ⇒ Object
- #maintainer=(maintainer) ⇒ Object
- #name ⇒ Object
- #name=(name) ⇒ Object
- #repeatability ⇒ Object
- #repeatability=(repeatability) ⇒ Object
- #version ⇒ Object
- #version=(version) ⇒ Object
- #website ⇒ Object
- #website=(website) ⇒ Object
Methods inherited from JSONable
Constructor Details
#initialize(name) ⇒ Process
Returns a new instance of Process.
7 8 9 10 |
# File 'lib/process.rb', line 7 def initialize(name) raise TypeException unless name.is_a?(String) @name = name end |
Instance Method Details
#description ⇒ Object
35 36 37 |
# File 'lib/process.rb', line 35 def description @description end |
#description=(description) ⇒ Object
30 31 32 33 |
# File 'lib/process.rb', line 30 def description=(description) raise TypeException unless description.is_a?(String) @description = description end |
#email ⇒ Object
53 54 55 |
# File 'lib/process.rb', line 53 def email @email end |
#email=(email) ⇒ Object
48 49 50 51 |
# File 'lib/process.rb', line 48 def email=(email) raise TypeException unless email.is_a?(String) @email = email end |
#maintainer ⇒ Object
44 45 46 |
# File 'lib/process.rb', line 44 def maintainer @maintainer end |
#maintainer=(maintainer) ⇒ Object
39 40 41 42 |
# File 'lib/process.rb', line 39 def maintainer=(maintainer) raise TypeException unless maintainer.is_a?(String) @maintainer = maintainer end |
#name ⇒ Object
17 18 19 |
# File 'lib/process.rb', line 17 def name @name end |
#name=(name) ⇒ Object
12 13 14 15 |
# File 'lib/process.rb', line 12 def name=(name) raise TypeException unless name.is_a?(String) @name = name end |
#repeatability ⇒ Object
71 72 73 |
# File 'lib/process.rb', line 71 def repeatability @repeatability end |
#repeatability=(repeatability) ⇒ Object
66 67 68 69 |
# File 'lib/process.rb', line 66 def repeatability=(repeatability) raise TypeException unless Repeatability.all.include?(repeatability) @repeatability = repeatability end |
#version ⇒ Object
26 27 28 |
# File 'lib/process.rb', line 26 def version @version end |
#version=(version) ⇒ Object
21 22 23 24 |
# File 'lib/process.rb', line 21 def version=(version) raise TypeException unless version.is_a?(String) @version = version end |
#website ⇒ Object
62 63 64 |
# File 'lib/process.rb', line 62 def website @website end |
#website=(website) ⇒ Object
57 58 59 60 |
# File 'lib/process.rb', line 57 def website=(website) raise TypeException unless website.is_a?(String) @website = website end |