Method: NuvemfiscalSdkRuby::NfeSefazPISOutr#valid?
- Defined in:
- lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_pis_outr.rb
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
152 153 154 155 156 157 158 159 160 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_pis_outr.rb', line 152 def valid? warn '[DEPRECATED] the `valid?` method is obsolete' return false if !@v_bc.nil? && @v_bc < 0 return false if !@p_pis.nil? && @p_pis < 0 return false if !@q_bc_prod.nil? && @q_bc_prod < 0 return false if !@v_aliq_prod.nil? && @v_aliq_prod < 0 return false if @v_pis < 0 true end |