Class: FE::Document::Phone
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/facturacr/document/phone.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 = {}) ⇒ Phone
constructor
A new instance of Phone.
Methods inherited from PhoneType
Methods inherited from Element
Constructor Details
#initialize(args = {}) ⇒ Phone
Returns a new instance of Phone.
10 11 12 |
# File 'lib/facturacr/document/phone.rb', line 10 def initialize(args = {}) super('Telefono', 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/phone.rb', line 8 def country_code @country_code end |
#number ⇒ Object
Returns the value of attribute number.
8 9 10 |
# File 'lib/facturacr/document/phone.rb', line 8 def number @number end |