implement iqdb wrapper
This commit is contained in:
17
app/logical/iqdb/responses/response_301.rb
Normal file
17
app/logical/iqdb/responses/response_301.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
module Iqdb
|
||||
module Responses
|
||||
class Response_301 < Error
|
||||
attr_reader :exception, :description
|
||||
|
||||
def initialize(response_string)
|
||||
response_string =~ /^(\S+) (.+)/
|
||||
@exception = $1
|
||||
@description = $2
|
||||
end
|
||||
|
||||
def to_s
|
||||
"Exception: #{exception}: #{description}"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user