Exception: ApiResource::ResourceError
- Inherits:
-
StandardError
- Object
- StandardError
- ApiResource::ResourceError
- Defined in:
- lib/api-resource/resource.rb
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Returns the value of attribute model.
Instance Method Summary collapse
-
#initialize(model, message) ⇒ ResourceError
constructor
A new instance of ResourceError.
Constructor Details
#initialize(model, message) ⇒ ResourceError
Returns a new instance of ResourceError.
16 17 18 19 |
# File 'lib/api-resource/resource.rb', line 16 def initialize(model, ) super() @model = model end |
Instance Attribute Details
#model ⇒ Object (readonly)
Returns the value of attribute model.
14 15 16 |
# File 'lib/api-resource/resource.rb', line 14 def model @model end |