Exception: CoachClient::NotSaved

Inherits:
Exception
  • Object
show all
Defined in:
lib/coach_client/exceptions.rb

Overview

The error for resources that could not have been saved.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource) ⇒ CoachClient::NotSaved

Parameters:



17
18
19
# File 'lib/coach_client/exceptions.rb', line 17

def initialize(resource)
  @resource = resource
end

Instance Attribute Details

#resourceCoachClient::Resource (readonly)

Returns the resource that encountered the error.



13
14
15
# File 'lib/coach_client/exceptions.rb', line 13

def resource
  @resource
end