class Ezid::ServerResponse

Attributes

response[R]

Public Class Methods

new(response) click to toggle source
# File lib/ezid/server_response.rb, line 6
def initialize(response)
  @response = response
end

Public Instance Methods

errored?() click to toggle source
# File lib/ezid/server_response.rb, line 10
def errored?
  @response.instance_of?(String) && @response.start_with?('bad request')
end
to_str() click to toggle source
# File lib/ezid/server_response.rb, line 14
def to_str
  @response.to_s
end