class BingSearch::ServiceError
Attributes
code[R]
The error code returned by Bing @return [String]
Public Class Methods
new(code, message = nil)
click to toggle source
@param [String] code
The error code returned by Bing
@param [String] message
Calls superclass method
# File lib/bing-search/errors.rb, line 12 def initialize(code, message = nil) super(message) @code = code end
Public Instance Methods
to_s()
click to toggle source
@return [String]
# File lib/bing-search/errors.rb, line 19 def to_s "Bing error #{code}: #{super}" end