Class: BundleUpdateInteractive::HTTP::Error

Inherits:
Object
  • Object
show all
Defined in:
lib/bundle_update_interactive/http.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#exceptionObject (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

#codeObject



22
23
24
# File 'lib/bundle_update_interactive/http.rb', line 22

def code
  nil
end

#success?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/bundle_update_interactive/http.rb', line 26

def success?
  false
end