Exception: Qihu::InvailAPIError
- Defined in:
- lib/qihu/error.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url, error) ⇒ InvailAPIError
constructor
A new instance of InvailAPIError.
Constructor Details
#initialize(url, error) ⇒ InvailAPIError
Returns a new instance of InvailAPIError.
8 9 10 11 12 13 |
# File 'lib/qihu/error.rb', line 8 def initialize(url, error) @url = url @error = error super "Invaild API: [#{@url}]" end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
6 7 8 |
# File 'lib/qihu/error.rb', line 6 def error @error end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
6 7 8 |
# File 'lib/qihu/error.rb', line 6 def url @url end |