class Nfe::Models::Referenced::NFref
Public Class Methods
new()
click to toggle source
# File lib/nfe/models/referenced/NFref.rb, line 24 def initialize @refNF = Nfe::Models::Referenced::RefNF.new @refNFP = Nfe::Models::Referenced::RefNFP.new @refECF = Nfe::Models::Referenced::RefECF.new end
Public Instance Methods
present?()
click to toggle source
# File lib/nfe/models/referenced/NFref.rb, line 30 def present? true end
Private Instance Methods
need_at_least_one_attribute_present()
click to toggle source
# File lib/nfe/models/referenced/NFref.rb, line 35 def need_at_least_one_attribute_present if !@refNFe.present? && !@refNF.present? && !@refNFP.present? && !@refCTe.present? && !@refECF.present? errors.add(:NFref, I18n.t("errors.messages.empty")) end end