Class: SIIChile::Consulta

Inherits:
Object
  • Object
show all
Defined in:
lib/sii_chile/consulta.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rut) ⇒ Consulta

Returns a new instance of Consulta


8
9
10
# File 'lib/sii_chile/consulta.rb', line 8

def initialize(rut)
  @rut = Rut.new(rut)
end

Instance Attribute Details

#rutObject (readonly)

Returns the value of attribute rut


6
7
8
# File 'lib/sii_chile/consulta.rb', line 6

def rut
  @rut
end

Instance Method Details

#resultadoObject


12
13
14
# File 'lib/sii_chile/consulta.rb', line 12

def resultado
  @resultado ||= self.fetch!
end