Class: SoftLayer::ProductConfigurationOption

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#capacityObject

Returns the value of attribute capacity

Returns:

  • (Object)

    the current value of capacity



29
30
31
# File 'lib/softlayer/ProductItemCategory.rb', line 29

def capacity
  @capacity
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



29
30
31
# File 'lib/softlayer/ProductItemCategory.rb', line 29

def description
  @description
end

#hourlyRecurringFeeObject

Returns the value of attribute hourlyRecurringFee

Returns:

  • (Object)

    the current value of hourlyRecurringFee



29
30
31
# File 'lib/softlayer/ProductItemCategory.rb', line 29

def hourlyRecurringFee
  @hourlyRecurringFee
end

#laborFeeObject

Returns the value of attribute laborFee

Returns:

  • (Object)

    the current value of laborFee



29
30
31
# File 'lib/softlayer/ProductItemCategory.rb', line 29

def laborFee
  @laborFee
end

#oneTimeFeeObject

Returns the value of attribute oneTimeFee

Returns:

  • (Object)

    the current value of oneTimeFee



29
30
31
# File 'lib/softlayer/ProductItemCategory.rb', line 29

def oneTimeFee
  @oneTimeFee
end

#price_idObject

Returns the value of attribute price_id

Returns:

  • (Object)

    the current value of price_id



29
30
31
# File 'lib/softlayer/ProductItemCategory.rb', line 29

def price_id
  @price_id
end

#recurringFeeObject

Returns the value of attribute recurringFee

Returns:

  • (Object)

    the current value of recurringFee



29
30
31
# File 'lib/softlayer/ProductItemCategory.rb', line 29

def recurringFee
  @recurringFee
end

#setupFeeObject

Returns the value of attribute setupFee

Returns:

  • (Object)

    the current value of setupFee



29
30
31
# File 'lib/softlayer/ProductItemCategory.rb', line 29

def setupFee
  @setupFee
end

#unitsObject

Returns the value of attribute units

Returns:

  • (Object)

    the current value of 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.

Returns:

  • (Boolean)


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