Class: SoftLayer::ProductConfigurationOption
- Inherits:
-
Struct
- Object
- Struct
- SoftLayer::ProductConfigurationOption
- Defined in:
- lib/softlayer/ProductItemCategory.rb
Overview
This struct represents a configuration option that can be included in a product order. Strictly speaking the only information required for the product order is the price_id, the rest of the information is provided to make the object friendly to humans who may be searching for the meaning of a given price_id.
Instance Attribute Summary collapse
-
#capacity ⇒ Object
Returns the value of attribute capacity.
-
#description ⇒ Object
Returns the value of attribute description.
-
#hourlyRecurringFee ⇒ Object
Returns the value of attribute hourlyRecurringFee.
-
#laborFee ⇒ Object
Returns the value of attribute laborFee.
-
#oneTimeFee ⇒ Object
Returns the value of attribute oneTimeFee.
-
#price_id ⇒ Object
Returns the value of attribute price_id.
-
#recurringFee ⇒ Object
Returns the value of attribute recurringFee.
-
#setupFee ⇒ Object
Returns the value of attribute setupFee.
-
#units ⇒ Object
Returns the value of attribute units.
Instance Method Summary collapse
-
#free? ⇒ Boolean
returns true if the configurtion option has no fees associated with it.
Instance Attribute Details
#capacity ⇒ Object
Returns the value of attribute capacity
29 30 31 |
# File 'lib/softlayer/ProductItemCategory.rb', line 29 def capacity @capacity end |
#description ⇒ Object
Returns the value of attribute description
29 30 31 |
# File 'lib/softlayer/ProductItemCategory.rb', line 29 def description @description end |
#hourlyRecurringFee ⇒ Object
Returns the value of attribute hourlyRecurringFee
29 30 31 |
# File 'lib/softlayer/ProductItemCategory.rb', line 29 def hourlyRecurringFee @hourlyRecurringFee end |
#laborFee ⇒ Object
Returns the value of attribute laborFee
29 30 31 |
# File 'lib/softlayer/ProductItemCategory.rb', line 29 def laborFee @laborFee end |
#oneTimeFee ⇒ Object
Returns the value of attribute oneTimeFee
29 30 31 |
# File 'lib/softlayer/ProductItemCategory.rb', line 29 def oneTimeFee @oneTimeFee end |
#price_id ⇒ Object
Returns the value of attribute price_id
29 30 31 |
# File 'lib/softlayer/ProductItemCategory.rb', line 29 def price_id @price_id end |
#recurringFee ⇒ Object
Returns the value of attribute recurringFee
29 30 31 |
# File 'lib/softlayer/ProductItemCategory.rb', line 29 def recurringFee @recurringFee end |
#setupFee ⇒ Object
Returns the value of attribute setupFee
29 30 31 |
# File 'lib/softlayer/ProductItemCategory.rb', line 29 def setupFee @setupFee end |
#units ⇒ Object
Returns the value of attribute units
29 30 31 |
# File 'lib/softlayer/ProductItemCategory.rb', line 29 def units @units end |
Instance Method Details
#free? ⇒ Boolean
returns true if the configurtion option has no fees associated with it.
34 35 36 |
# File 'lib/softlayer/ProductItemCategory.rb', line 34 def free? self.setupFee == 0 && self.laborFee == 0 && self.oneTimeFee == 0 && self.recurringFee == 0 && self.hourlyRecurringFee == 0 end |