Exception: Registrar::Provider::EnomError

Inherits:
RegistrarError show all
Defined in:
lib/registrar/provider/enom.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ EnomError

Returns a new instance of EnomError.



412
413
414
415
416
417
418
419
420
421
# File 'lib/registrar/provider/enom.rb', line 412

def initialize(response)
  @response = response
  @errors = []

  response['errors'].each do |k, err|
    @errors << err
  end

  super response['errors'].values.join(", ")
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



410
411
412
# File 'lib/registrar/provider/enom.rb', line 410

def errors
  @errors
end

#responseObject (readonly)

Returns the value of attribute response.



409
410
411
# File 'lib/registrar/provider/enom.rb', line 409

def response
  @response
end