Class: Prof::ServiceInstance

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = "cf-service-#{SecureRandom.hex(4)}") ⇒ ServiceInstance

Returns a new instance of ServiceInstance.



15
16
17
# File 'lib/prof/service_instance.rb', line 15

def initialize(name = "cf-service-#{SecureRandom.hex(4)}")
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



19
20
21
# File 'lib/prof/service_instance.rb', line 19

def name
  @name
end