Class: SynergyWholesale::DomainRegister::Response

Inherits:
BaseResponse
  • Object
show all
Defined in:
lib/synergy_wholesale/operations/domain_register.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



34
35
36
# File 'lib/synergy_wholesale/operations/domain_register.rb', line 34

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