Class: MotionGiphy::Error

Inherits:
Object
  • Object
show all
Defined in:
lib/motion-giphy/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#errorObject (readonly)

Returns the value of attribute error.



3
4
5
# File 'lib/motion-giphy/error.rb', line 3

def error
  @error
end

#messageObject (readonly)

Returns the value of attribute message.



3
4
5
# File 'lib/motion-giphy/error.rb', line 3

def message
  @message
end