Class: SynergyWholesale::DomainRegisterAu::Response

Inherits:
BaseResponse
  • Object
show all
Defined in:
lib/synergy_wholesale/operations/domain_register_au.rb

Instance Attribute Summary

Attributes inherited from BaseResponse

#command, #response

Instance Method Summary collapse

Methods inherited from BaseResponse

#body, #initialize, #message, #successful?

Constructor Details

This class inherits a constructor from SynergyWholesale::BaseResponse

Instance Method Details

#validate_dataObject



29
30
31
# File 'lib/synergy_wholesale/operations/domain_register_au.rb', line 29

def validate_data
  raise Errors::BadDataError.new('Expected a numeric cost price', command, response) unless Inflector.is_numeric?(response[:cost_price])
end