Exception: Maia::Error::Unregistered

Inherits:
Generic
  • Object
show all
Defined in:
lib/maia/error/unregistered.rb

Instance Attribute Summary

Attributes inherited from Generic

#payload

Instance Method Summary collapse

Instance Method Details

#tokenObject



4
5
6
7
8
9
# File 'lib/maia/error/unregistered.rb', line 4

def token
  json = JSON.parse(payload)
  json['token']
rescue JSON::ParserError
  nil
end