Exception: Firering::Connection::HTTPError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/firering/connection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http) ⇒ HTTPError



177
178
179
# File 'lib/firering/connection.rb', line 177

def initialize(http)
  @http = http
end

Instance Attribute Details

#httpObject (readonly)

Returns the value of attribute http



176
177
178
# File 'lib/firering/connection.rb', line 176

def http
  @http
end

Instance Method Details

#to_sObject



180
181
182
# File 'lib/firering/connection.rb', line 180

def to_s
  "http error #{@http.error if @http.respond_to?(:error)}".strip
end