lib/cloud_party/responses/zones.rb in cloud_party-0.1.4 vs lib/cloud_party/responses/zones.rb in cloud_party-0.1.5

- old
+ new

@@ -21,11 +21,11 @@ message = <<~MESSAGE Unable to #{method_name.to_s.upcase} to endpoint: #{endpoint}. Inspect CloudParty::APIError#response for further details MESSAGE - raise CloudParty::APIError.new(message, response) + raise CloudParty::Errors::APIError.new(message, response) end @results = [] case endpoint when '/zones' @@ -34,10 +34,10 @@ end when '/zones/:id' @result = CloudParty::Responses::Result.new(@body[:result]) @results << @result else - raise UnRecognizedEndpointError.new(endpoint, self.class) + raise Errors::UnRecognizedEndpointError.new(endpoint, self.class) end @errors = [] @body[:errors].each do |err| @errors << CloudParty::Responses::Error.new(err)