Class: FedexWebServices::Soap::Ship::RateDiscount

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

Overview

http://fedex.com/ws/ship/v12RateDiscount

rateDiscountType - FedexWebServices::Soap::Ship::RateDiscountType
description - SOAP::SOAPString
amount - FedexWebServices::Soap::Ship::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.



2515
2516
2517
2518
2519
2520
# File 'lib/fedex_web_services/soap/ShipServiceDefinitions.rb', line 2515

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.



2512
2513
2514
# File 'lib/fedex_web_services/soap/ShipServiceDefinitions.rb', line 2512

def amount
  @amount
end

#descriptionObject

Returns the value of attribute description.



2511
2512
2513
# File 'lib/fedex_web_services/soap/ShipServiceDefinitions.rb', line 2511

def description
  @description
end

#percentObject

Returns the value of attribute percent.



2513
2514
2515
# File 'lib/fedex_web_services/soap/ShipServiceDefinitions.rb', line 2513

def percent
  @percent
end

#rateDiscountTypeObject

Returns the value of attribute rateDiscountType.



2510
2511
2512
# File 'lib/fedex_web_services/soap/ShipServiceDefinitions.rb', line 2510

def rateDiscountType
  @rateDiscountType
end