Class: FE::Document::Fax
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/facturacr/document/fax.rb
Instance Attribute Summary collapse
-
#country_code ⇒ Object
Returns the value of attribute country_code.
-
#number ⇒ Object
Returns the value of attribute number.
Attributes inherited from PhoneType
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Fax
constructor
A new instance of Fax.
Methods inherited from PhoneType
Methods inherited from Element
Constructor Details
#initialize(args = {}) ⇒ Fax
Returns a new instance of Fax.
10 11 12 |
# File 'lib/facturacr/document/fax.rb', line 10 def initialize(args = {}) super('Fax', args[:country_code], args[:number]) end |
Instance Attribute Details
#country_code ⇒ Object
Returns the value of attribute country_code.
8 9 10 |
# File 'lib/facturacr/document/fax.rb', line 8 def country_code @country_code end |
#number ⇒ Object
Returns the value of attribute number.
8 9 10 |
# File 'lib/facturacr/document/fax.rb', line 8 def number @number end |