Exception: Anilibria::Api::Exceptions::AuthError
- Defined in:
- lib/anilibria/api/exceptions/auth_error.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
- #err ⇒ Object
-
#initialize(data = {}) ⇒ AuthError
constructor
A new instance of AuthError.
- #key ⇒ Object
- #mes ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ AuthError
Returns a new instance of AuthError.
7 8 9 10 11 |
# File 'lib/anilibria/api/exceptions/auth_error.rb', line 7 def initialize(data = {}) @data = data super("#{mes} (#{key})") end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
5 6 7 |
# File 'lib/anilibria/api/exceptions/auth_error.rb', line 5 def data @data end |
Instance Method Details
#err ⇒ Object
13 14 15 |
# File 'lib/anilibria/api/exceptions/auth_error.rb', line 13 def err data[:err] end |
#key ⇒ Object
21 22 23 |
# File 'lib/anilibria/api/exceptions/auth_error.rb', line 21 def key data[:key] end |
#mes ⇒ Object
17 18 19 |
# File 'lib/anilibria/api/exceptions/auth_error.rb', line 17 def mes data[:mes] end |