Exception: Registrar::Provider::EnomError
- Inherits:
-
RegistrarError
- Object
- RuntimeError
- RegistrarError
- Registrar::Provider::EnomError
- Defined in:
- lib/registrar/provider/enom.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ EnomError
constructor
A new instance of EnomError.
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
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
410 411 412 |
# File 'lib/registrar/provider/enom.rb', line 410 def errors @errors end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
409 410 411 |
# File 'lib/registrar/provider/enom.rb', line 409 def response @response end |