Class: Ebay::Responses::Base

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

Direct Known Subclasses

Abstract

Instance Method Summary collapse

Methods included from Types

#type

Instance Method Details

#errors?Boolean



6
7
8
# File 'lib/ebay/response/base.rb', line 6

def errors?
  errors.size > 0
end

#failure?Boolean



18
19
20
# File 'lib/ebay/response/base.rb', line 18

def failure?
  ack == 'Failure'
end

#partial_failure?Boolean



22
23
24
# File 'lib/ebay/response/base.rb', line 22

def partial_failure?
  ack == 'PartialFailure'
end

#success?Boolean



10
11
12
# File 'lib/ebay/response/base.rb', line 10

def success?
  ack == 'Success'
end

#warning?Boolean



14
15
16
# File 'lib/ebay/response/base.rb', line 14

def warning?
  ack == 'Warning'
end