Class: Dryad::Core::ServiceInstance

Inherits:
Object
  • Object
show all
Defined in:
lib/dryad/core/service_instance.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ ServiceInstance

Returns a new instance of ServiceInstance.



6
7
8
9
10
11
# File 'lib/dryad/core/service_instance.rb', line 6

def initialize(options = {})
  @name = options[:name]
  @schema = options[:schema]
  @address = options[:address]
  @port = options[:port]
end

Instance Attribute Details

#addressObject

Returns the value of attribute address.



4
5
6
# File 'lib/dryad/core/service_instance.rb', line 4

def address
  @address
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/dryad/core/service_instance.rb', line 4

def name
  @name
end

#portObject

Returns the value of attribute port.



4
5
6
# File 'lib/dryad/core/service_instance.rb', line 4

def port
  @port
end

#schemaObject

Returns the value of attribute schema.



4
5
6
# File 'lib/dryad/core/service_instance.rb', line 4

def schema
  @schema
end