Class: Contact

Inherits:
Object
  • Object
show all
Defined in:
lib/rfetion/contact.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#impresaObject (readonly)

Returns the value of attribute impresa.



2
3
4
# File 'lib/rfetion/contact.rb', line 2

def impresa
  @impresa
end

#mobile_noObject (readonly)

Returns the value of attribute mobile_no.



2
3
4
# File 'lib/rfetion/contact.rb', line 2

def mobile_no
  @mobile_no
end

#nicknameObject (readonly)

Returns the value of attribute nickname.



2
3
4
# File 'lib/rfetion/contact.rb', line 2

def nickname
  @nickname
end

#uriObject (readonly)

Returns the value of attribute uri.



2
3
4
# File 'lib/rfetion/contact.rb', line 2

def uri
  @uri
end