Class: Hula::CloudFoundry::ServiceBroker

Inherits:
Object
  • Object
show all
Defined in:
lib/hula/cloud_foundry/service_broker.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (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

#uriObject



27
28
29
# File 'lib/hula/cloud_foundry/service_broker.rb', line 27

def uri
  URI.parse(url)
end