Class: FedexWebServices::Soap::Rate::RateDiscount

Inherits:
Object
  • Object
show all
Defined in:
lib/fedex_web_services/soap/RateServiceDefinitions.rb

Overview

http://fedex.com/ws/rate/v13RateDiscount

rateDiscountType - FedexWebServices::Soap::Rate::RateDiscountType
description - SOAP::SOAPString
amount - FedexWebServices::Soap::Rate::Money
percent - SOAP::SOAPDecimal

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rateDiscountType = nil, description = nil, amount = nil, percent = nil) ⇒ RateDiscount

Returns a new instance of RateDiscount.



2033
2034
2035
2036
2037
2038
# File 'lib/fedex_web_services/soap/RateServiceDefinitions.rb', line 2033

def initialize(rateDiscountType = nil, description = nil, amount = nil, percent = nil)
  @rateDiscountType = rateDiscountType
  @description = description
  @amount = amount
  @percent = percent
end

Instance Attribute Details

#amountObject

Returns the value of attribute amount.



2030
2031
2032
# File 'lib/fedex_web_services/soap/RateServiceDefinitions.rb', line 2030

def amount
  @amount
end

#descriptionObject

Returns the value of attribute description.



2029
2030
2031
# File 'lib/fedex_web_services/soap/RateServiceDefinitions.rb', line 2029

def description
  @description
end

#percentObject

Returns the value of attribute percent.



2031
2032
2033
# File 'lib/fedex_web_services/soap/RateServiceDefinitions.rb', line 2031

def percent
  @percent
end

#rateDiscountTypeObject

Returns the value of attribute rateDiscountType.



2028
2029
2030
# File 'lib/fedex_web_services/soap/RateServiceDefinitions.rb', line 2028

def rateDiscountType
  @rateDiscountType
end