Class: FE::Document::Phone

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

Instance Attribute Summary collapse

Attributes inherited from PhoneType

#tag_name

Instance Method Summary collapse

Methods inherited from PhoneType

#build_xml, #to_xml

Constructor Details

#initialize(args = {}) ⇒ Phone

Returns a new instance of Phone.



16
17
18
# File 'lib/facturacr/document/phone.rb', line 16

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

Instance Attribute Details

#country_codeObject

Returns the value of attribute country_code.



10
11
12
# File 'lib/facturacr/document/phone.rb', line 10

def country_code
  @country_code
end

#numberObject

Returns the value of attribute number.



10
11
12
# File 'lib/facturacr/document/phone.rb', line 10

def number
  @number
end