Class: Contact

Inherits:
NSObject
  • Object
show all
Defined in:
app/contact.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#companyObject

Returns the value of attribute company.



3
4
5
# File 'app/contact.rb', line 3

def company
  @company
end

#nameObject

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

#getUIDObject



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

#textToIndexObject



26
27
28
# File 'app/contact.rb', line 26

def textToIndex
  [@name]
end