module Facturapi::Utils::DteTypes

Constants

DOCUMENTS
VALID_REGEXP

Public Class Methods

humanized(dte_type) click to toggle source
# File lib/facturapi/utils/dte_types.rb, line 33
def self.humanized(dte_type)
  I18n.t "facturapi.dte_type.#{sym(dte_type)}"
end
sym(dte_type) click to toggle source
# File lib/facturapi/utils/dte_types.rb, line 29
def self.sym(dte_type)
  DOCUMENTS[dte_type]
end