Class: Contact
- Inherits:
-
NSObject
- Object
- NSObject
- Contact
- Defined in:
- app/contact.rb
Instance Attribute Summary collapse
-
#company ⇒ Object
Returns the value of attribute company.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #deserialize(reader, classVersion: version) ⇒ Object
- #getUID ⇒ Object
- #initWithName(name, andCompany: company) ⇒ Object
- #serialize(writer) ⇒ Object
- #textToIndex ⇒ Object
Instance Attribute Details
#company ⇒ Object
Returns the value of attribute company.
3 4 5 |
# File 'app/contact.rb', line 3 def company @company end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'app/contact.rb', line 2 def name @name end |
Instance Method Details
#deserialize(reader, classVersion: version) ⇒ Object
17 18 19 20 |
# File 'app/contact.rb', line 17 def deserialize(reader, classVersion:version) @name = reader.readString @company = reader.readString end |
#getUID ⇒ Object
22 23 24 |
# File 'app/contact.rb', line 22 def getUID @name end |
#initWithName(name, andCompany: company) ⇒ Object
5 6 7 8 9 10 |
# File 'app/contact.rb', line 5 def initWithName(name, andCompany:company) self.init @name = name @company = company self end |
#serialize(writer) ⇒ Object
12 13 14 15 |
# File 'app/contact.rb', line 12 def serialize(writer) writer.writeString(@name) writer.writeString(@company) end |
#textToIndex ⇒ Object
26 27 28 |
# File 'app/contact.rb', line 26 def textToIndex [@name] end |