Method: Coinbase::Client::Transaction#valid?
- Defined in:
- lib/coinbase/client/models/transaction.rb
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
186 187 188 189 190 191 192 193 194 195 |
# File 'lib/coinbase/client/models/transaction.rb', line 186 def valid? warn '[DEPRECATED] the `valid?` method is obsolete' return false if @network_id.nil? return false if @from_address_id.nil? return false if @unsigned_payload.nil? return false if @status.nil? status_validator = EnumAttributeValidator.new('String', ["pending", "signed", "broadcast", "complete", "failed", "unknown_default_open_api"]) return false unless status_validator.valid?(@status) true end |