Class: SynergyWholesale::DomainRegister::Response
- Inherits:
-
BaseResponse
- Object
- BaseResponse
- SynergyWholesale::DomainRegister::Response
- Defined in:
- lib/synergy_wholesale/operations/domain_register.rb
Instance Attribute Summary
Attributes inherited from BaseResponse
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_data ⇒ Object
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 |