Exception: BtsyncApi::ApiError
- Inherits:
-
Exception
- Object
- Exception
- BtsyncApi::ApiError
- Defined in:
- lib/btsync/api.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
Instance Method Summary collapse
-
#initialize(error_code) ⇒ ApiError
constructor
A new instance of ApiError.
Constructor Details
#initialize(error_code) ⇒ ApiError
Returns a new instance of ApiError.
7 8 9 |
# File 'lib/btsync/api.rb', line 7 def initialize(error_code) @error_code = error_code end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
6 7 8 |
# File 'lib/btsync/api.rb', line 6 def error_code @error_code end |