Exception: DearInventory::Error

Inherits:
StandardError
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/dear_inventory/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil) ⇒ Error

Returns a new instance of Error.



12
13
14
# File 'lib/dear_inventory/error.rb', line 12

def initialize(message = nil)
  @message = T.let(message, T.nilable(String))
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



9
10
11
# File 'lib/dear_inventory/error.rb', line 9

def message
  @message
end