Class: Renalware::Letters::Batch
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Renalware::Letters::Batch
- Includes:
- Accountable
- Defined in:
- app/models/renalware/letters/batch.rb
Instance Attribute Summary collapse
-
#author_id_eq ⇒ Object
TODO: I think these attributes are dead.
-
#created_by_id_eq ⇒ Object
TODO: I think these attributes are dead.
-
#enclosures_present ⇒ Object
TODO: I think these attributes are dead.
-
#letterhead_id_eq ⇒ Object
TODO: I think these attributes are dead.
-
#page_count_in_array ⇒ Object
TODO: I think these attributes are dead.
-
#s ⇒ Object
TODO: I think these attributes are dead.
-
#state_eq ⇒ Object
TODO: I think these attributes are dead.
-
#url ⇒ Object
TODO: I think these attributes are dead.
Instance Method Summary collapse
Methods included from Accountable
#first_or_create_by!, #save_by, #save_by!, #update_by
Instance Attribute Details
#author_id_eq ⇒ Object
TODO: I think these attributes are dead
11 12 13 |
# File 'app/models/renalware/letters/batch.rb', line 11 def @author_id_eq end |
#created_by_id_eq ⇒ Object
TODO: I think these attributes are dead
11 12 13 |
# File 'app/models/renalware/letters/batch.rb', line 11 def created_by_id_eq @created_by_id_eq end |
#enclosures_present ⇒ Object
TODO: I think these attributes are dead
11 12 13 |
# File 'app/models/renalware/letters/batch.rb', line 11 def enclosures_present @enclosures_present end |
#letterhead_id_eq ⇒ Object
TODO: I think these attributes are dead
11 12 13 |
# File 'app/models/renalware/letters/batch.rb', line 11 def letterhead_id_eq @letterhead_id_eq end |
#page_count_in_array ⇒ Object
TODO: I think these attributes are dead
11 12 13 |
# File 'app/models/renalware/letters/batch.rb', line 11 def page_count_in_array @page_count_in_array end |
#s ⇒ Object
TODO: I think these attributes are dead
11 12 13 |
# File 'app/models/renalware/letters/batch.rb', line 11 def s @s end |
#state_eq ⇒ Object
TODO: I think these attributes are dead
11 12 13 |
# File 'app/models/renalware/letters/batch.rb', line 11 def state_eq @state_eq end |
#url ⇒ Object
TODO: I think these attributes are dead
11 12 13 |
# File 'app/models/renalware/letters/batch.rb', line 11 def url @url end |
Instance Method Details
#percent_complete ⇒ Object
34 35 36 |
# File 'app/models/renalware/letters/batch.rb', line 34 def percent_complete ((items.where(status: :compiled).count.to_f / batch_items_count) * 100).ceil end |