Class: Hula::CloudFoundry::ServiceBroker
- Inherits:
-
Object
- Object
- Hula::CloudFoundry::ServiceBroker
- Defined in:
- lib/hula/cloud_foundry/service_broker.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name:, url:) ⇒ ServiceBroker
constructor
A new instance of ServiceBroker.
- #uri ⇒ Object
Constructor Details
#initialize(name:, url:) ⇒ ServiceBroker
Returns a new instance of ServiceBroker.
18 19 20 21 |
# File 'lib/hula/cloud_foundry/service_broker.rb', line 18 def initialize(name:, url:) @name = name @url = url end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
16 17 18 |
# File 'lib/hula/cloud_foundry/service_broker.rb', line 16 def name @name end |
Instance Method Details
#==(other) ⇒ Object
23 24 25 |
# File 'lib/hula/cloud_foundry/service_broker.rb', line 23 def ==(other) is_a?(other.class) && @name == other.name && @url == other.url end |
#uri ⇒ Object
27 28 29 |
# File 'lib/hula/cloud_foundry/service_broker.rb', line 27 def uri URI.parse(url) end |