Class: OpenEHR::RM::Demographic::Contact

Inherits:
Locatable
  • Object
show all
Defined in:
lib/open_ehr/rm/demographic.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = { }) ⇒ Contact

Returns a new instance of Contact.



96
97
98
99
100
# File 'lib/open_ehr/rm/demographic.rb', line 96

def initialize(args = { })
  super(args)
  self.addresses = args[:addresses]
  self.time_validity = args[:time_validity]
end

Instance Attribute Details

#addressesObject

Returns the value of attribute addresses.



94
95
96
# File 'lib/open_ehr/rm/demographic.rb', line 94

def addresses
  @addresses
end

#time_validityObject

Returns the value of attribute time_validity.



93
94
95
# File 'lib/open_ehr/rm/demographic.rb', line 93

def time_validity
  @time_validity
end

Instance Method Details

#purposeObject



102
103
104
# File 'lib/open_ehr/rm/demographic.rb', line 102

def purpose
  return @name
end