Exception: Praxis::Mapper::ResourceNotFound

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/praxis/mapper/resource.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



8
9
10
# File 'lib/praxis/mapper/resource.rb', line 8

def id
  @id
end

#typeObject (readonly)

Returns the value of attribute type.



8
9
10
# File 'lib/praxis/mapper/resource.rb', line 8

def type
  @type
end