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.



117
118
119
# File 'lib/json_api_client/errors.rb', line 117

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

Instance Attribute Details

#recordObject (readonly)

Returns the value of attribute record.



115
116
117
# File 'lib/json_api_client/errors.rb', line 115

def record
  @record
end

Instance Method Details

#messageObject



120
121
122
# File 'lib/json_api_client/errors.rb', line 120

def message
  "Record not saved"
end