Exception: JsonApiClient::Errors::RecordNotSaved
- Inherits:
-
ServerError
- Object
- StandardError
- ApiError
- ServerError
- JsonApiClient::Errors::RecordNotSaved
- Defined in:
- lib/json_api_client/errors.rb
Instance Attribute Summary collapse
-
#record ⇒ Object
readonly
Returns the value of attribute record.
Attributes inherited from ApiError
Instance Method Summary collapse
-
#initialize(message = nil, record = nil) ⇒ RecordNotSaved
constructor
A new instance of RecordNotSaved.
- #message ⇒ Object
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( = nil, record = nil) @record = record end |
Instance Attribute Details
#record ⇒ Object (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
#message ⇒ Object
120 121 122 |
# File 'lib/json_api_client/errors.rb', line 120 def "Record not saved" end |