Class: MotionGiphy::Error
- Inherits:
-
Object
- Object
- MotionGiphy::Error
- Defined in:
- lib/motion-giphy/error.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(error) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(error) ⇒ Error
Returns a new instance of Error.
5 6 7 8 |
# File 'lib/motion-giphy/error.rb', line 5 def initialize(error) @error = error @message = error.localizedDescription end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
3 4 5 |
# File 'lib/motion-giphy/error.rb', line 3 def error @error end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
3 4 5 |
# File 'lib/motion-giphy/error.rb', line 3 def @message end |