Class: Barker::Api::Response::Base

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/barker/api/response/base.rb

Instance Method Summary collapse

Instance Method Details

#error?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/barker/api/response/base.rb', line 8

def error?
  !!error
end

#ok?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/barker/api/response/base.rb', line 12

def ok?
  !error?
end