Class: TaxIdBr
- Inherits:
-
Object
- Object
- TaxIdBr
- Defined in:
- app/models/tax_id_br.rb
Instance Attribute Summary collapse
-
#document_type ⇒ Object
readonly
Returns the value of attribute document_type.
-
#formatted ⇒ Object
readonly
Returns the value of attribute formatted.
Instance Method Summary collapse
-
#initialize(tax_id) ⇒ TaxIdBr
constructor
A new instance of TaxIdBr.
- #valid? ⇒ Boolean
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_type ⇒ Object (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 |
#formatted ⇒ Object (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
7 8 9 |
# File 'app/models/tax_id_br.rb', line 7 def valid? @valid end |