class SchoolLoop::Error::ServiceError
Attributes
http_headers[RW]
http_method[RW]
http_status[RW]
url[RW]
Public Class Methods
new(env)
click to toggle source
Calls superclass method
SchoolLoop::Error::SchoolLoopError::new
# File lib/school_loop/error/service_error.rb, line 9 def initialize(env) super(generate_message(env)) @http_headers = env[:response_headers] @http_status = env[:status] @http_method = env[:method].to_s.upcase @url = env[:url].to_s end
Public Instance Methods
generate_message(env)
click to toggle source
# File lib/school_loop/error/service_error.rb, line 17 def generate_message(env) "#{env[:body]}" end