Class: Renalware::Letters::ElectronicRecipientOptions

Inherits:
Object
  • Object
show all
Defined in:
app/models/renalware/letters/electronic_recipient_options.rb

Defined Under Namespace

Classes: Group

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(patient, author) ⇒ ElectronicRecipientOptions

Returns a new instance of ElectronicRecipientOptions.



16
17
18
19
# File 'app/models/renalware/letters/electronic_recipient_options.rb', line 16

def initialize(patient, author)
  @patient = patient
  @author = author
end

Instance Attribute Details

#authorObject (readonly)

Returns the value of attribute author.



8
9
10
# File 'app/models/renalware/letters/electronic_recipient_options.rb', line 8

def author
  @author
end

#patientObject (readonly)

Returns the value of attribute patient.



8
9
10
# File 'app/models/renalware/letters/electronic_recipient_options.rb', line 8

def patient
  @patient
end

Instance Method Details

#to_aObject



21
22
23
24
25
26
27
# File 'app/models/renalware/letters/electronic_recipient_options.rb', line 21

def to_a
  [
    users_having_previously_received_been_cced_about_this_patient,
    users_having_recently_been_cced_by_author,
    all_other_users
  ]
end