Class: FE::Document::Fax

Inherits:
PhoneType show all
Includes:
ActiveModel::Validations
Defined in:
lib/facturacr/document/fax.rb

Instance Attribute Summary collapse

Attributes inherited from PhoneType

#tag_name

Attributes inherited from Element

#document, #version

Instance Method Summary collapse

Methods inherited from PhoneType

#build_xml, #to_xml

Methods inherited from Element

#build_xml

Constructor Details

#initialize(args = {}) ⇒ Fax

Returns a new instance of Fax.



13
14
15
# File 'lib/facturacr/document/fax.rb', line 13

def initialize(args = {})
  super('Fax', args[:country_code], args[:number])
end

Instance Attribute Details

#country_codeObject

Returns the value of attribute country_code.



11
12
13
# File 'lib/facturacr/document/fax.rb', line 11

def country_code
  @country_code
end

#numberObject

Returns the value of attribute number.



11
12
13
# File 'lib/facturacr/document/fax.rb', line 11

def number
  @number
end