Method: Miasma::Error::ApiError#initialize
- Defined in:
- lib/miasma/error.rb
#initialize(msg, args = {}) ⇒ ApiError
Create new API error instance
29 30 31 32 33 34 |
# File 'lib/miasma/error.rb', line 29 def initialize(msg, args={}) super @response = args.to_smash[:response] @message = msg (@response) end |