Exception: CoachClient::NotSaved
- Defined in:
- lib/coach_client/exceptions.rb
Overview
The error for resources that could not have been saved.
Instance Attribute Summary collapse
-
#resource ⇒ CoachClient::Resource
readonly
Returns the resource that encountered the error.
Instance Method Summary collapse
- #initialize(resource) ⇒ CoachClient::NotSaved constructor
Constructor Details
#initialize(resource) ⇒ CoachClient::NotSaved
17 18 19 |
# File 'lib/coach_client/exceptions.rb', line 17 def initialize(resource) @resource = resource end |
Instance Attribute Details
#resource ⇒ CoachClient::Resource (readonly)
Returns the resource that encountered the error.
13 14 15 |
# File 'lib/coach_client/exceptions.rb', line 13 def resource @resource end |