Class: Hula::ServiceBroker::Plan

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Plan

Returns a new instance of Plan.



14
15
16
17
18
19
# File 'lib/hula/service_broker/plan.rb', line 14

def initialize(args = {})
  @id = args.fetch(:id)
  @name = args.fetch(:name)
  @description = args.fetch(:description)
  @service_id = args.fetch(:service_id)
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



21
22
23
# File 'lib/hula/service_broker/plan.rb', line 21

def description
  @description
end

#idObject (readonly)

Returns the value of attribute id.



21
22
23
# File 'lib/hula/service_broker/plan.rb', line 21

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



21
22
23
# File 'lib/hula/service_broker/plan.rb', line 21

def name
  @name
end

#service_idObject (readonly)

Returns the value of attribute service_id.



21
22
23
# File 'lib/hula/service_broker/plan.rb', line 21

def service_id
  @service_id
end

Instance Method Details

#==(other) ⇒ Object



23
24
25
26
27
28
29
# File 'lib/hula/service_broker/plan.rb', line 23

def ==(other)
  is_a?(other.class) &&
    id == other.id &&
    name == other.name &&
    description == other.description &&
    service_id == other.service_id
end