lib/sportradar/api/error.rb in sportradar-api-0.1.2 vs lib/sportradar/api/error.rb in sportradar-api-0.1.3
- old
+ new
@@ -10,16 +10,17 @@
class InvalidSport < StandardError; end
class InvalidType < StandardError; end
class Timeout < Timeout::Error ; end
class NoData < EOFError; end
- attr_reader :message, :status_code, :status
+ attr_reader :message, :code, :response
- def initialize(response_status, response_code, response_message = nil)
- @status_code = response_code
- @status = response_status
+ def initialize( code, message, response)
+ @code = response_code
@message = response_message
+ @response = response
end
+
end
end
end