Exception: Curl::Easy::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/curl/easy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, msg) ⇒ Error

Returns a new instance of Error.

[View source] [View on GitHub]

12
13
14
15
# File 'lib/curl/easy.rb', line 12

def initialize(code, msg)
  self.message = msg
  self.code = code
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.

[View on GitHub]

11
12
13
# File 'lib/curl/easy.rb', line 11

def code
  @code
end

#messageObject

Returns the value of attribute message.

[View on GitHub]

11
12
13
# File 'lib/curl/easy.rb', line 11

def message
  @message
end