Class: Hula::ServiceBroker::Plan
- Inherits:
-
Object
- Object
- Hula::ServiceBroker::Plan
- Defined in:
- lib/hula/service_broker/plan.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#service_id ⇒ Object
readonly
Returns the value of attribute service_id.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(args = {}) ⇒ Plan
constructor
A new instance of Plan.
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
#description ⇒ Object (readonly)
Returns the value of attribute description.
21 22 23 |
# File 'lib/hula/service_broker/plan.rb', line 21 def description @description end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
21 22 23 |
# File 'lib/hula/service_broker/plan.rb', line 21 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
21 22 23 |
# File 'lib/hula/service_broker/plan.rb', line 21 def name @name end |
#service_id ⇒ Object (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 |