Class: WCC::Data::Nucleus::Contact

Inherits:
Base
  • Object
show all
Defined in:
lib/wcc/data/nucleus/contact.rb

Instance Method Summary collapse

Methods included from Mapper::JSONResponse

#new_from_response

Methods included from Mapper::RESTConfiguration

#endpoint, #endpoint_config, #inherited, #set_endpoint

Methods included from Mapper::RESTQuery

#create, #find, #list

Methods included from Mapper::Attributes

included

Instance Method Details

#genderObject



23
24
25
# File 'lib/wcc/data/nucleus/contact.rb', line 23

def gender
  Gender[gender_id]
end

#gender=(gender) ⇒ Object



27
28
29
# File 'lib/wcc/data/nucleus/contact.rb', line 27

def gender=(gender)
  self.gender_id = gender.id
end

#marital_statusObject



15
16
17
# File 'lib/wcc/data/nucleus/contact.rb', line 15

def marital_status
  MaritalStatus[marital_status_id]
end

#marital_status=(marital_status) ⇒ Object



19
20
21
# File 'lib/wcc/data/nucleus/contact.rb', line 19

def marital_status=(marital_status)
  self.marital_status_id = marital_status.id
end