Exception: Curl::Easy::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Curl::Easy::Error
- Defined in:
- lib/curl/easy.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(code, msg) ⇒ Error
constructor
A new instance of Error.
Constructor Details
permalink #initialize(code, msg) ⇒ Error
Returns a new instance of Error.
12 13 14 15 |
# File 'lib/curl/easy.rb', line 12 def initialize(code, msg) self. = msg self.code = code end |
Instance Attribute Details
permalink #code ⇒ Object
Returns the value of attribute code.
11 12 13 |
# File 'lib/curl/easy.rb', line 11 def code @code end |
permalink #message ⇒ Object
Returns the value of attribute message.
11 12 13 |
# File 'lib/curl/easy.rb', line 11 def @message end |