Class: FedexWebServices::Soap::Ship::Dimensions

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

Overview

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

length - SOAP::SOAPNonNegativeInteger
width - SOAP::SOAPNonNegativeInteger
height - SOAP::SOAPNonNegativeInteger
units - FedexWebServices::Soap::Ship::LinearUnits

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(length = nil, width = nil, height = nil, units = nil) ⇒ Dimensions

Returns a new instance of Dimensions.



1240
1241
1242
1243
1244
1245
# File 'lib/fedex_web_services/soap/ShipServiceDefinitions.rb', line 1240

def initialize(length = nil, width = nil, height = nil, units = nil)
  @length = length
  @width = width
  @height = height
  @units = units
end

Instance Attribute Details

#heightObject

Returns the value of attribute height.



1237
1238
1239
# File 'lib/fedex_web_services/soap/ShipServiceDefinitions.rb', line 1237

def height
  @height
end

#lengthObject

Returns the value of attribute length.



1235
1236
1237
# File 'lib/fedex_web_services/soap/ShipServiceDefinitions.rb', line 1235

def length
  @length
end

#unitsObject

Returns the value of attribute units.



1238
1239
1240
# File 'lib/fedex_web_services/soap/ShipServiceDefinitions.rb', line 1238

def units
  @units
end

#widthObject

Returns the value of attribute width.



1236
1237
1238
# File 'lib/fedex_web_services/soap/ShipServiceDefinitions.rb', line 1236

def width
  @width
end