Exception: Praxis::Mapper::ResourceNotFound
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Praxis::Mapper::ResourceNotFound
- Defined in:
- lib/praxis/mapper/resource.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type:, id: nil) ⇒ ResourceNotFound
constructor
A new instance of ResourceNotFound.
Constructor Details
#initialize(type:, id: nil) ⇒ ResourceNotFound
Returns a new instance of ResourceNotFound.
10 11 12 13 |
# File 'lib/praxis/mapper/resource.rb', line 10 def initialize(type:, id: nil) @type = type @id = id end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
8 9 10 |
# File 'lib/praxis/mapper/resource.rb', line 8 def id @id end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
8 9 10 |
# File 'lib/praxis/mapper/resource.rb', line 8 def type @type end |