Class: Connectwise::Contact

Inherits:
Object
  • Object
show all
Includes:
Model
Defined in:
lib/connectwise/contact.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Model

#defined_attributes, #destroy, included, #initialize, #persisted?, #save, #to_h

Instance Attribute Details

#address_line1Object

TODO - email or email_address - Member uses email_address, while here it’s email - normalize



5
6
7
# File 'lib/connectwise/contact.rb', line 5

def address_line1
  @address_line1
end

#address_line2Object

TODO - email or email_address - Member uses email_address, while here it’s email - normalize



5
6
7
# File 'lib/connectwise/contact.rb', line 5

def address_line2
  @address_line2
end

#cityObject

TODO - email or email_address - Member uses email_address, while here it’s email - normalize



5
6
7
# File 'lib/connectwise/contact.rb', line 5

def city
  @city
end

#company_idObject

TODO - email or email_address - Member uses email_address, while here it’s email - normalize



5
6
7
# File 'lib/connectwise/contact.rb', line 5

def company_id
  @company_id
end

#company_nameObject

TODO - email or email_address - Member uses email_address, while here it’s email - normalize



5
6
7
# File 'lib/connectwise/contact.rb', line 5

def company_name
  @company_name
end

#countryObject

TODO - email or email_address - Member uses email_address, while here it’s email - normalize



5
6
7
# File 'lib/connectwise/contact.rb', line 5

def country
  @country
end

#default_flagObject

TODO - email or email_address - Member uses email_address, while here it’s email - normalize



5
6
7
# File 'lib/connectwise/contact.rb', line 5

def default_flag
  @default_flag
end

#disable_portal_loginObject

TODO - email or email_address - Member uses email_address, while here it’s email - normalize



5
6
7
# File 'lib/connectwise/contact.rb', line 5

def 
  
end

#emailObject

TODO - email or email_address - Member uses email_address, while here it’s email - normalize



5
6
7
# File 'lib/connectwise/contact.rb', line 5

def email
  @email
end

#first_nameObject

TODO - email or email_address - Member uses email_address, while here it’s email - normalize



5
6
7
# File 'lib/connectwise/contact.rb', line 5

def first_name
  @first_name
end

#idObject

TODO - email or email_address - Member uses email_address, while here it’s email - normalize



5
6
7
# File 'lib/connectwise/contact.rb', line 5

def id
  @id
end

#last_nameObject

TODO - email or email_address - Member uses email_address, while here it’s email - normalize



5
6
7
# File 'lib/connectwise/contact.rb', line 5

def last_name
  @last_name
end

#last_updateObject

TODO - email or email_address - Member uses email_address, while here it’s email - normalize



5
6
7
# File 'lib/connectwise/contact.rb', line 5

def last_update
  @last_update
end

#phoneObject

TODO - email or email_address - Member uses email_address, while here it’s email - normalize



5
6
7
# File 'lib/connectwise/contact.rb', line 5

def phone
  @phone
end

#portal_security_captionObject

TODO - email or email_address - Member uses email_address, while here it’s email - normalize



5
6
7
# File 'lib/connectwise/contact.rb', line 5

def portal_security_caption
  @portal_security_caption
end

#portal_security_levelObject

TODO - email or email_address - Member uses email_address, while here it’s email - normalize



5
6
7
# File 'lib/connectwise/contact.rb', line 5

def portal_security_level
  @portal_security_level
end

#relationshipObject

TODO - email or email_address - Member uses email_address, while here it’s email - normalize



5
6
7
# File 'lib/connectwise/contact.rb', line 5

def relationship
  @relationship
end

#stateObject

TODO - email or email_address - Member uses email_address, while here it’s email - normalize



5
6
7
# File 'lib/connectwise/contact.rb', line 5

def state
  @state
end

#typeObject

TODO - email or email_address - Member uses email_address, while here it’s email - normalize



5
6
7
# File 'lib/connectwise/contact.rb', line 5

def type
  @type
end

#zipObject

TODO - email or email_address - Member uses email_address, while here it’s email - normalize



5
6
7
# File 'lib/connectwise/contact.rb', line 5

def zip
  @zip
end

Instance Method Details

#company=(company) ⇒ Object

TODO - add company accessor and make use of company rec id - either run another query to create it, or find a way to defer until company is asked for



9
10
11
# File 'lib/connectwise/contact.rb', line 9

def company=(company)
  @company = company
end