Class: BundleUpdateInteractive::HTTP::Error
- Inherits:
-
Object
- Object
- BundleUpdateInteractive::HTTP::Error
- Defined in:
- lib/bundle_update_interactive/http.rb
Instance Attribute Summary collapse
-
#exception ⇒ Object
readonly
Returns the value of attribute exception.
Instance Method Summary collapse
- #code ⇒ Object
-
#initialize(exception) ⇒ Error
constructor
A new instance of Error.
- #success? ⇒ Boolean
Constructor Details
#initialize(exception) ⇒ Error
Returns a new instance of Error.
18 19 20 |
# File 'lib/bundle_update_interactive/http.rb', line 18 def initialize(exception) @exception = exception end |
Instance Attribute Details
#exception ⇒ Object (readonly)
Returns the value of attribute exception.
16 17 18 |
# File 'lib/bundle_update_interactive/http.rb', line 16 def exception @exception end |
Instance Method Details
#code ⇒ Object
22 23 24 |
# File 'lib/bundle_update_interactive/http.rb', line 22 def code nil end |
#success? ⇒ Boolean
26 27 28 |
# File 'lib/bundle_update_interactive/http.rb', line 26 def success? false end |