Class: VCAP::Services::ServicePlanChangeSet

Inherits:
Object
  • Object
show all
Defined in:
lib/base/service_plan_change_set.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(service, service_guid, options = {}) ⇒ ServicePlanChangeSet

Returns a new instance of ServicePlanChangeSet.



4
5
6
7
8
9
# File 'lib/base/service_plan_change_set.rb', line 4

def initialize(service, service_guid, options = {})
  @service = service
  @service_guid = service_guid
  @plans_to_add = options[:plans_to_add] || []
  @plans_to_update = options[:plans_to_update] || []
end

Instance Attribute Details

#plans_to_addObject (readonly)

Returns the value of attribute plans_to_add.



3
4
5
# File 'lib/base/service_plan_change_set.rb', line 3

def plans_to_add
  @plans_to_add
end

#plans_to_updateObject (readonly)

Returns the value of attribute plans_to_update.



3
4
5
# File 'lib/base/service_plan_change_set.rb', line 3

def plans_to_update
  @plans_to_update
end

#serviceObject (readonly)

Returns the value of attribute service.



3
4
5
# File 'lib/base/service_plan_change_set.rb', line 3

def service
  @service
end

#service_guidObject (readonly)

Returns the value of attribute service_guid.



3
4
5
# File 'lib/base/service_plan_change_set.rb', line 3

def service_guid
  @service_guid
end