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
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Phone
constructor
A new instance of Phone.
Methods inherited from PhoneType
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_code ⇒ Object
Returns the value of attribute country_code.
10 11 12 |
# File 'lib/facturacr/document/phone.rb', line 10 def country_code @country_code end |
#number ⇒ Object
Returns the value of attribute number.
10 11 12 |
# File 'lib/facturacr/document/phone.rb', line 10 def number @number end |