Exception: ApiExceptions::BaseException

Inherits:
StandardError
  • Object
show all
Defined in:
app/lib/api_exceptions/base_exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



5
6
7
# File 'app/lib/api_exceptions/base_exception.rb', line 5

def data
  @data
end

#statusObject (readonly)

Returns the value of attribute status.



5
6
7
# File 'app/lib/api_exceptions/base_exception.rb', line 5

def status
  @status
end

Instance Method Details

#as_jsonObject



7
8
9
10
11
# File 'app/lib/api_exceptions/base_exception.rb', line 7

def as_json
  {
    data: data
  }
end