Class: Prof::ServiceInstance
- Inherits:
-
Object
- Object
- Prof::ServiceInstance
- Defined in:
- lib/prof/service_instance.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name = "cf-service-#{SecureRandom.hex(4)}") ⇒ ServiceInstance
constructor
A new instance of ServiceInstance.
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
19 20 21 |
# File 'lib/prof/service_instance.rb', line 19 def name @name end |