class UserProvidedServiceInstanceHelper

Public Class Methods

new(instance) click to toggle source
# File lib/cf/cli/service/service_instance_helper.rb, line 8
def initialize(instance)
  @instance = instance
end

Public Instance Methods

matches(opts = {}) click to toggle source
# File lib/cf/cli/service/service_instance_helper.rb, line 28
def matches(opts = {})
  label = opts[:service]
  if label
    return label == service_label
  end

  true
end
name() click to toggle source
# File lib/cf/cli/service/service_instance_helper.rb, line 37
def name
  @instance.name
end
plan_name() click to toggle source
# File lib/cf/cli/service/service_instance_helper.rb, line 24
def plan_name
  "n/a"
end
service_bindings() click to toggle source
# File lib/cf/cli/service/service_instance_helper.rb, line 41
def service_bindings
  @instance.service_bindings
end
service_label() click to toggle source
# File lib/cf/cli/service/service_instance_helper.rb, line 12
def service_label
  "user-provided"
end
service_provider() click to toggle source
# File lib/cf/cli/service/service_instance_helper.rb, line 16
def service_provider
  "n/a"
end
version() click to toggle source
# File lib/cf/cli/service/service_instance_helper.rb, line 20
def version
  "n/a"
end