Class: Misty::Services::Service

Inherits:
Object
  • Object
show all
Defined in:
lib/misty/services.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/misty/services.rb', line 4

def name
  @name
end

#optionsObject

Returns the value of attribute options.



4
5
6
# File 'lib/misty/services.rb', line 4

def options
  @options
end

#projectObject (readonly)

Returns the value of attribute project.



4
5
6
# File 'lib/misty/services.rb', line 4

def project
  @project
end

#versionObject

Returns the value of attribute version.



4
5
6
# File 'lib/misty/services.rb', line 4

def version
  @version
end

#versionsObject (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_sObject



17
18
19
# File 'lib/misty/services.rb', line 17

def to_s
  "#{name}: #{project}: #{versions}"
end