Class: Renalware::Pathology::Requests::Row

Inherits:
Object
  • Object
show all
Defined in:
app/models/renalware/pathology/requests/global_rule_sets_table.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(request_description, clinics, rule_sets) ⇒ Row

Returns a new instance of Row.



25
26
27
28
29
# File 'app/models/renalware/pathology/requests/global_rule_sets_table.rb', line 25

def initialize(request_description, clinics, rule_sets)
  @request_description = request_description
  @clinics = clinics
  @rule_sets = rule_sets
end

Instance Attribute Details

#request_descriptionObject (readonly)

Returns the value of attribute request_description.



23
24
25
# File 'app/models/renalware/pathology/requests/global_rule_sets_table.rb', line 23

def request_description
  @request_description
end

Instance Method Details

#columnsObject



31
32
33
34
35
# File 'app/models/renalware/pathology/requests/global_rule_sets_table.rb', line 31

def columns
  @clinics.map do |clinic|
    Cell.new(request_description, clinic, @rule_sets)
  end
end