Class: VerifactuRails::Libro::Configuracion

Inherits:
Struct
  • Object
show all
Defined in:
lib/verifactu_rails/libro.rb

Overview

Lo que identifica al SOFTWARE. Lo que identifica a la INSTALACIÓN (NumeroInstalacion) y al obligado va en la tabla de cadenas, no aquí: hay una instalación por fuente de facturación, no una por despliegue.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#al_detectar_anomaliaObject

Returns the value of attribute al_detectar_anomalia

Returns:

  • (Object)

    the current value of al_detectar_anomalia



37
38
39
# File 'lib/verifactu_rails/libro.rb', line 37

def al_detectar_anomalia
  @al_detectar_anomalia
end

#entornoObject

Returns the value of attribute entorno

Returns:

  • (Object)

    the current value of entorno



37
38
39
# File 'lib/verifactu_rails/libro.rb', line 37

def entorno
  @entorno
end

#id_sistemaObject

Returns the value of attribute id_sistema

Returns:

  • (Object)

    the current value of id_sistema



37
38
39
# File 'lib/verifactu_rails/libro.rb', line 37

def id_sistema
  @id_sistema
end

#multi_otObject

Returns the value of attribute multi_ot

Returns:

  • (Object)

    the current value of multi_ot



37
38
39
# File 'lib/verifactu_rails/libro.rb', line 37

def multi_ot
  @multi_ot
end

#multiples_otObject

Returns the value of attribute multiples_ot

Returns:

  • (Object)

    the current value of multiples_ot



37
38
39
# File 'lib/verifactu_rails/libro.rb', line 37

def multiples_ot
  @multiples_ot
end

#nombre_sistemaObject

Returns the value of attribute nombre_sistema

Returns:

  • (Object)

    the current value of nombre_sistema



37
38
39
# File 'lib/verifactu_rails/libro.rb', line 37

def nombre_sistema
  @nombre_sistema
end

#productor_nifObject

Returns the value of attribute productor_nif

Returns:

  • (Object)

    the current value of productor_nif



37
38
39
# File 'lib/verifactu_rails/libro.rb', line 37

def productor_nif
  @productor_nif
end

#productor_nombreObject

Returns the value of attribute productor_nombre

Returns:

  • (Object)

    the current value of productor_nombre



37
38
39
# File 'lib/verifactu_rails/libro.rb', line 37

def productor_nombre
  @productor_nombre
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



37
38
39
# File 'lib/verifactu_rails/libro.rb', line 37

def version
  @version
end

Instance Method Details

#sistema_para(cadena) ⇒ Object



41
42
43
44
45
46
47
48
# File 'lib/verifactu_rails/libro.rb', line 41

def sistema_para(cadena)
  SistemaInformatico.new(
    nombre_razon: productor_nombre, nif: productor_nif,
    nombre_sistema: nombre_sistema, id_sistema: id_sistema, version: version,
    numero_instalacion: cadena.numero_instalacion,
    multi_ot: multi_ot || false, multiples_ot: multiples_ot || false
  )
end