lib/cfoundry/v1/client.rb in cfoundry-0.3.0 vs lib/cfoundry/v1/client.rb in cfoundry-0.3.1

- old
+ new

@@ -64,11 +64,12 @@ services = [] @base.system_services.each do |type, vendors| vendors.each do |vendor, versions| versions.each do |num, meta| - services << Service.new(vendor, meta[:description], num) + services << + Service.new(vendor.to_s, num, meta[:description], type) end end end services @@ -77,11 +78,12 @@ # Retrieve available runtimes. def runtimes runtimes = [] @base.system_runtimes.each do |name, meta| - runtimes << Runtime.new(name.to_s, meta[:version]) + runtimes << + Runtime.new(name.to_s, meta[:version], meta[:debug_modes]) end runtimes end @@ -187,10 +189,10 @@ # Retrieve all of the current user's services. def service_instances @base.services.collect do |json| - Service.new(json[:name], self, json) + ServiceInstance.new(json[:name], self, json) end end # Construct a Service object. The return value is lazy, and no requests are # made from this method alone.