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

- (Boolean) errors?

Returns:

  • (Boolean)


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

def errors?
  errors.size > 0
end

- (Boolean) failure?

Returns:

  • (Boolean)


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

def failure?
  ack == 'Failure'
end

- (Boolean) partial_failure?

Returns:

  • (Boolean)


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

def partial_failure?
  ack == 'PartialFailure'
end

- (Boolean) success?

Returns:

  • (Boolean)


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

def success?
  ack == 'Success'
end

- (Boolean) warning?

Returns:

  • (Boolean)


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

def warning?
  ack == 'Warning'
end