module Ebayr::User

Public Instance Methods

ebay_call(call, arguments = {}) click to toggle source

Shorthand for call(call, arguments.merge(:auth_token => this.ebay_token)) Allows objects which mix in this module to use their own token.

# File lib/ebayr/user.rb, line 5
def ebay_call(call, arguments = {})
  raise "#{self} has no eBay token" unless ebay_token
  Ebayr.call(call, arguments.merge(:auth_token => ebay_token))
end
get_ebay_data() click to toggle source

Gets the user's data

# File lib/ebayr/user.rb, line 11
def get_ebay_data
  ebay_call(:GetUser)
end