Class: Misty::Services::Service
- Inherits:
-
Object
- Object
- Misty::Services::Service
- Defined in:
- lib/misty/services.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
-
#project ⇒ Object
readonly
Returns the value of attribute project.
-
#version ⇒ Object
Returns the value of attribute version.
-
#versions ⇒ Object
readonly
Returns the value of attribute versions.
Instance Method Summary collapse
-
#initialize(name, project, versions) ⇒ Service
constructor
A new instance of Service.
- #to_s ⇒ Object
Constructor Details
#initialize(name, project, versions) ⇒ Service
Returns a new instance of Service.
6 7 8 9 10 11 |
# File 'lib/misty/services.rb', line 6 def initialize(name, project, versions) @name = name @project = project @versions = versions @options = {} end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/misty/services.rb', line 4 def name @name end |
#options ⇒ Object
Returns the value of attribute options.
4 5 6 |
# File 'lib/misty/services.rb', line 4 def @options end |
#project ⇒ Object (readonly)
Returns the value of attribute project.
4 5 6 |
# File 'lib/misty/services.rb', line 4 def project @project end |
#version ⇒ Object
Returns the value of attribute version.
4 5 6 |
# File 'lib/misty/services.rb', line 4 def version @version end |
#versions ⇒ Object (readonly)
Returns the value of attribute versions.
4 5 6 |
# File 'lib/misty/services.rb', line 4 def versions @versions end |
Instance Method Details
#to_s ⇒ Object
17 18 19 |
# File 'lib/misty/services.rb', line 17 def to_s "#{name}: #{project}: #{versions}" end |