Class: ShipMe::FedEx::Element

Inherits:
Object
  • Object
show all
Includes:
ROXML
Defined in:
lib/ship_me/carriers/fed_ex/element.rb

Direct Known Subclasses

AdditionalLabelsDetail, AdditionalLabelsType, Address, AstraLabelElement, B13AFilingOptionType, BarcodeSymbologyType, BinaryBarcode, BinaryBarcodeType, CancelPendingShipmentReply, CarrierCodeType, CertificateOfOriginDetail, ClientDetail, CodAddTransportationChargesType, CodCollectionType, CodDetail, CodReturnPackageDetail, CodReturnReferenceIndicatorType, CodReturnShipmentDetail, CommercialInvoice, CommercialInvoiceDetail, Commodity, CompletedEtdDetail, CompletedPackageDetail, CompletedShipmentDetail, CompletedSmartPostDetail, CompletedTagDetail, ConfigurableLabelReferenceEntry, Contact, ContactAndAddress, ContentRecord, CreatePendingShipmentReply, CurrencyExchangeRate, CustomDocumentDetail, CustomLabelBarcodeEntry, CustomLabelBoxEntry, CustomLabelCoordinateUnits, CustomLabelDetail, CustomLabelGraphicEntry, CustomLabelPosition, CustomLabelTextEntry, CustomerImageUsage, CustomerImageUsageType, CustomerReference, CustomerReferenceType, CustomerSpecifiedLabelDetail, DangerousGoodsAccessibilityType, DangerousGoodsDetail, DateRange, DayOfWeekType, DeletionControlType, DestinationControlDetail, DestinationControlStatementType, Dimensions, DocTabContent, DocTabContentBarcoded, DocTabContentType, DocTabContentZone001, DocTabZoneJustificationType, DocTabZoneSpecification, DropoffType, EMailLabelDetail, EMailNotificationDetail, EMailNotificationFormatType, EMailNotificationRecipient, EMailNotificationRecipientType, EdtCommodityTax, EdtExciseCondition, EdtRequestType, EdtTaxDetail, EdtTaxType, ErrorLabelBehaviorType, EtdDetail, ExportDetail, ExpressFreightDetail, GeneralAgencyAgreementDetail, HazardousCommodityContent, HazardousCommodityDescription, HazardousCommodityLabelTextOptionType, HazardousCommodityOptionDetail, HazardousCommodityOptionType, HazardousCommodityPackagingDetail, HazardousCommodityPackingGroupType, HazardousCommodityQuantityDetail, HoldAtLocationDetail, HomeDeliveryPremiumDetail, HomeDeliveryPremiumType, ImageId, InternationalDetail, InternationalDocumentContentType, LabelFormatType, LabelMaskableDataType, LabelPrintingOrientationType, LabelRotationType, LabelSpecification, LabelStockType, LinearMeasure, LinearUnits, Localization, Measure, MinimumChargeType, Money, NaftaCertificateOfOriginDetail, NaftaCommodityDetail, NaftaImporterSpecificationType, NaftaNetCostMethodCode, NaftaPreferenceCriterionCode, NaftaProducer, NaftaProducerDeterminationCode, NaftaProducerSpecificationType, Notification, NotificationParameter, NotificationSeverityType, Op900Detail, OversizeClassType, PackageBarcodes, PackageRateDetail, PackageRating, PackageSpecialServiceType, PackageSpecialServicesRequested, PackagingType, Party, Payment, PaymentType, Payor, PendingShipmentAccessDetail, PendingShipmentDetail, PendingShipmentType, PhysicalPackagingType, PickupDetail, PickupRequestSourceType, PickupRequestType, PricingCodeType, PriorityAlertDetail, ProcessShipmentReply, ProcessTagReply, PurposeOfShipmentType, RateDimensionalDivisorType, RateDiscount, RateDiscountType, RateRequestType, RatedWeightMethod, Rebate, RebateType, RecipientCustomsIdType, RegulatoryControlType, RequestElement, RequestedPackageDetailType, RequestedPackageLineItem, RequestedShipment, RequestedShippingDocumentType, ReturnEMailAllowedSpecialServiceType, ReturnEMailDetail, ReturnShipmentDetail, ReturnType, ReturnedRateType, ReturnedShippingDocumentType, Rma, RoutingAstraDetail, RoutingDetail, ServiceType, ShipmentDryIceDetail, ShipmentRateDetail, ShipmentRating, ShipmentReply, ShipmentRoutingDetail, ShipmentSpecialServiceType, ShipmentSpecialServicesRequested, ShippingDocument, ShippingDocumentDispositionDetail, ShippingDocumentDispositionType, ShippingDocumentEMailDetail, ShippingDocumentEMailGroupingType, ShippingDocumentEMailRecipient, ShippingDocumentFormat, ShippingDocumentGroupingType, ShippingDocumentImageType, ShippingDocumentPart, ShippingDocumentPrintDetail, ShippingDocumentSpecification, ShippingDocumentStockType, SignatureOptionDetail, SignatureOptionType, SmartPostAncillaryEndorsementType, SmartPostIndiciaType, SmartPostShipmentDetail, SmartPostShipmentSpecialServiceType, SpecialRatingAppliedType, StringBarcode, StringBarcodeType, Surcharge, SurchargeLevelType, SurchargeType, Tax, TaxType, TaxpayerIdentification, TermsOfSaleType, TinType, TrackingId, TrackingIdType, TransactionDetail, TransitTimeType, UploadDocumentIdProducer, UploadDocumentProducerType, UploadDocumentReferenceDetail, UploadDocumentType, ValidatedHazardousCommodityContent, ValidatedHazardousCommodityDescription, VariableHandlingChargeDetail, VariableHandlingChargeType, VariableHandlingCharges, VersionId, WebAuthenticationCredential, WebAuthenticationDetail, Weight, WeightUnits

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Element

Returns a new instance of Element.



18
19
20
21
22
# File 'lib/ship_me/carriers/fed_ex/element.rb', line 18

def initialize(attributes={})
  attributes.each do |attr, value|
    self.send(:"#{attr}=", value)
  end
end

Class Method Details

.inherited(base) ⇒ Object



10
11
12
# File 'lib/ship_me/carriers/fed_ex/element.rb', line 10

def self.inherited base
  base.setup unless base.kind_of?(Element)
end

.setupObject



14
15
16
# File 'lib/ship_me/carriers/fed_ex/element.rb', line 14

def self.setup
  xml_name self.name.gsub(/.*::/, '')
end