Class: Barker::Api::Response::Error

Inherits:
Base
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/barker/api/response/error.rb

Instance Method Summary collapse

Methods inherited from Base

#error?, #ok?

Instance Method Details

#to_hashObject



8
9
10
11
12
# File 'lib/barker/api/response/error.rb', line 8

def to_hash
  {
    'error' => error
  }
end