Class: Ebay::Requests::Base

Inherits:
Object
  • Object
show all
Includes:
Types
Defined in:
lib/ebay/request/base.rb

Direct Known Subclasses

Abstract

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods included from Types

#type

Instance Attribute Details

- (Object) auth_token

Returns the value of attribute auth_token



7
8
9
# File 'lib/ebay/request/base.rb', line 7

def auth_token
  @auth_token
end

- (Object) password

Returns the value of attribute password



7
8
9
# File 'lib/ebay/request/base.rb', line 7

def password
  @password
end

- (Object) username

Returns the value of attribute username



7
8
9
# File 'lib/ebay/request/base.rb', line 7

def username
  @username
end

Instance Method Details

- (Object) call_name



9
10
11
# File 'lib/ebay/request/base.rb', line 9

def call_name
  self.class.to_s.split('::').last.gsub(/Request$/, '')
end

- (Object) requester_credentials



13
14
15
# File 'lib/ebay/request/base.rb', line 13

def requester_credentials
  XMLRequesterCredentials.new(:ebay_auth_token => auth_token)
end