Class: TaxIdBr

Inherits:
Object
  • Object
show all
Defined in:
app/models/tax_id_br.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tax_id) ⇒ TaxIdBr

Returns a new instance of TaxIdBr.



3
4
5
# File 'app/models/tax_id_br.rb', line 3

def initialize tax_id
  create_document tax_id
end

Instance Attribute Details

#document_typeObject (readonly)

Returns the value of attribute document_type.



2
3
4
# File 'app/models/tax_id_br.rb', line 2

def document_type
  @document_type
end

#formattedObject (readonly)

Returns the value of attribute formatted.



2
3
4
# File 'app/models/tax_id_br.rb', line 2

def formatted
  @formatted
end

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'app/models/tax_id_br.rb', line 7

def valid?
  @valid
end