Exception: WikiBot::APIError
- Inherits:
-
StandardError
- Object
- StandardError
- WikiBot::APIError
- Defined in:
- lib/wikibot.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#info ⇒ Object
Returns the value of attribute info.
Instance Method Summary collapse
-
#initialize(code, info) ⇒ APIError
constructor
A new instance of APIError.
Constructor Details
#initialize(code, info) ⇒ APIError
Returns a new instance of APIError.
22 23 24 25 |
# File 'lib/wikibot.rb', line 22 def initialize(code, info) @code = code @info = info end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
21 22 23 |
# File 'lib/wikibot.rb', line 21 def code @code end |
#info ⇒ Object
Returns the value of attribute info.
21 22 23 |
# File 'lib/wikibot.rb', line 21 def info @info end |