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

#auth_tokenObject

Returns the value of attribute auth_token.



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

def auth_token
  @auth_token
end

#passwordObject

Returns the value of attribute password.



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

def password
  @password
end

#usernameObject

Returns the value of attribute username.



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

def username
  @username
end

Instance Method Details

#call_nameObject



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

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

#requester_credentialsObject



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

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