Class: Ebay::Requests::Abstract

Inherits:
Base
  • Object
show all
Includes:
Initializer, XML::Mapping
Defined in:
lib/ebay/requests/abstract.rb

Overview

Attributes

value_array_node :detail_levels, 'DetailLevel', :default_value => []
text_node :error_language, 'ErrorLanguage', :optional => true
text_node :message_id, 'MessageID', :optional => true
text_node :version, 'Version', :optional => true
object_node :requester_credentials, 'RequesterCredentials', :class => XMLRequesterCredentials, :optional => true
text_node :error_handling, 'ErrorHandling', :optional => true
text_node :invocation_id, 'InvocationID', :optional => true
text_node :warning_level, 'WarningLevel', :optional => true

Direct Known Subclasses

AddDispute, AddDisputeResponse, AddItem, AddLiveAuctionItem, AddMemberMessageAAQToPartner, AddMemberMessageRTQ, AddMemberMessagesAAQToBidder, AddOrder, AddSecondChanceItem, AddToItemDescription, AddToWatchList, AddTransactionConfirmationItem, ApproveLiveAuctionBidders, CompleteSale, DeleteMyMessages, EndItem, FetchToken, GetAccount, GetAdFormatLeads, GetAllBidders, GetApiAccessRules, GetAttributesCS, GetAttributesXSL, GetBestOffers, GetBidderList, GetCart, GetCategories, GetCategory2CS, GetCategory2FinanceOffer, GetCategoryFeatures, GetCategoryListings, GetCategoryMappings, GetChallengeToken, GetCharities, GetContextualKeywords, GetCrossPromotions, GetDescriptionTemplates, GetDispute, GetFeedback, GetFinanceOffers, GetHighBidders, GetItem, GetItemRecommendations, GetItemShipping, GetItemTransactions, GetItemsAwaitingFeedback, GetLiveAuctionBidders, GetLiveAuctionCatalogDetails, GetMemberMessages, GetMessagePreferences, GetMyMessages, GetMyeBayBuying, GetMyeBayReminders, GetMyeBaySelling, GetNotificationPreferences, GetNotificationsUsage, GetOrderTransactions, GetOrders, GetPictureManagerDetails, GetPictureManagerOptions, GetPopularKeywords, GetProductFamilyMembers, GetProductFinder, GetProductFinderXSL, GetProductSearchPage, GetProductSearchResults, GetProductSellingPages, GetProducts, GetPromotionRules, GetPromotionalSaleDetails, GetReturnURL, GetRuName, GetSearchResults, GetSearchResultsExpress, GetSellerEvents, GetSellerList, GetSellerPayments, GetSellerTransactions, GetShippingDiscountProfiles, GetStore, GetStoreCategoryUpdateStatus, GetStoreCustomPage, GetStoreOptions, GetStorePreferences, GetSuggestedCategories, GetTaxTable, GetUser, GetUserContactDetails, GetUserDisputes, GetUserPreferences, GetVeROReasonCodeDetails, GetVeROReportStatus, GetWantItNowPost, GetWantItNowSearchResults, GeteBayDetails, GeteBayOfficialTime, IssueRefund, LeaveFeedback, PlaceOffer, RelistItem, RemoveFromWatchList, RespondToBestOffer, RespondToFeedback, RespondToWantItNowPost, ReviseCheckoutStatus, ReviseItem, ReviseLiveAuctionItem, ReviseMyMessages, ReviseMyMessagesFolders, SellerReverseDispute, SendInvoice, SetCart, SetMessagePreferences, SetNotificationPreferences, SetPictureManagerDetails, SetPromotionRules, SetPromotionalSale, SetPromotionalSaleListings, SetReturnURL, SetShippingDiscountProfiles, SetStore, SetStoreCategories, SetStoreCustomPage, SetStorePreferences, SetTaxTable, SetUserNotes, SetUserPreferences, ValidateChallengeInput, ValidateTestUserRegistration, VeROReportItems, VerifyAddItem, VerifyAddSecondChanceItem

Instance Attribute Summary

Attributes inherited from Base

#auth_token

Instance Method Summary collapse

Methods included from Initializer

#initialize, #object_attributes=

Methods inherited from Base

#call_name, #requester_credentials

Methods included from Types

#type

Instance Method Details

#detail_levelObject

eBay specifies the detail level as a collection. The usual case is to use only a single detail level, so it is more appropriate to add an accessor for the normal case. Reads the first detail level from the detail_levels Array.



30
31
32
# File 'lib/ebay/requests/abstract.rb', line 30

def detail_level
  @detail_levels.first
end

#detail_level=(value) ⇒ Object

Overwrites the details_levels Array with a new Array containing only the value passed in as an argument



36
37
38
# File 'lib/ebay/requests/abstract.rb', line 36

def detail_level=(value)
  @detail_levels = Array(value)
end