Exception: JsonApiClient::Errors::RecordNotSaved

Inherits:
ServerError show all
Defined in:
lib/json_api_client/errors.rb

Instance Attribute Summary collapse

Attributes inherited from ApiError

#env

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, record = nil) ⇒ RecordNotSaved

Returns a new instance of RecordNotSaved.



110
111
112
# File 'lib/json_api_client/errors.rb', line 110

def initialize(message = nil, record = nil)
  @record = record
end

Instance Attribute Details

#recordObject (readonly)

Returns the value of attribute record.



108
109
110
# File 'lib/json_api_client/errors.rb', line 108

def record
  @record
end

Instance Method Details

#messageObject



113
114
115
# File 'lib/json_api_client/errors.rb', line 113

def message
  "Record not saved"
end