Module: Ebayr::User
- Defined in:
- lib/ebayr/user.rb
Instance Method Summary collapse
-
#ebay_call(call, arguments = {}) ⇒ Object
Shorthand for call(call, arguments.merge(:auth_token => this.ebay_token)) Allows objects which mix in this module to use their own token.
-
#get_ebay_data ⇒ Object
Gets the user’s data.
Instance Method Details
#ebay_call(call, arguments = {}) ⇒ Object
Shorthand for call(call, arguments.merge(:auth_token => this.ebay_token)) Allows objects which mix in this module to use their own token.
6 7 8 9 |
# File 'lib/ebayr/user.rb', line 6 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 ⇒ Object
Gets the user’s data
12 13 14 |
# File 'lib/ebayr/user.rb', line 12 def get_ebay_data ebay_call(:GetUser) end |