Class: Contact
- Inherits:
-
Object
- Object
- Contact
- Defined in:
- lib/rfetion/contact.rb
Instance Attribute Summary collapse
-
#impresa ⇒ Object
readonly
Returns the value of attribute impresa.
-
#mobile_no ⇒ Object
readonly
Returns the value of attribute mobile_no.
-
#nickname ⇒ Object
readonly
Returns the value of attribute nickname.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(uri, attrs) ⇒ Contact
constructor
A new instance of Contact.
Constructor Details
#initialize(uri, attrs) ⇒ Contact
Returns a new instance of Contact.
4 5 6 7 8 9 10 |
# File 'lib/rfetion/contact.rb', line 4 def initialize(uri, attrs) @uri = uri @mobile_no = attrs["mobile-no"] @nickname = attrs["nickname"] @impresa = attrs["impresa"] @nickname = attrs["nickname"] end |
Instance Attribute Details
#impresa ⇒ Object (readonly)
Returns the value of attribute impresa.
2 3 4 |
# File 'lib/rfetion/contact.rb', line 2 def impresa @impresa end |
#mobile_no ⇒ Object (readonly)
Returns the value of attribute mobile_no.
2 3 4 |
# File 'lib/rfetion/contact.rb', line 2 def mobile_no @mobile_no end |
#nickname ⇒ Object (readonly)
Returns the value of attribute nickname.
2 3 4 |
# File 'lib/rfetion/contact.rb', line 2 def nickname @nickname end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
2 3 4 |
# File 'lib/rfetion/contact.rb', line 2 def uri @uri end |