Class: Reading::Row::ProgressSubattribute
- Defined in:
- lib/reading/attribute/experiences/progress_subattribute.rb
Instance Method Summary collapse
-
#initialize(date_entry: nil, variant_index: nil, columns:, config:) ⇒ ProgressSubattribute
constructor
A new instance of ProgressSubattribute.
- #parse ⇒ Object
- #parse_head ⇒ Object
Constructor Details
#initialize(date_entry: nil, variant_index: nil, columns:, config:) ⇒ ProgressSubattribute
Returns a new instance of ProgressSubattribute.
12 13 14 15 16 17 |
# File 'lib/reading/attribute/experiences/progress_subattribute.rb', line 12 def initialize(date_entry: nil, variant_index: nil, columns:, config:) @date_entry = date_entry @variant_index = variant_index @columns = columns @config = config end |
Instance Method Details
#parse ⇒ Object
19 20 21 |
# File 'lib/reading/attribute/experiences/progress_subattribute.rb', line 19 def parse progress(date_entry) || progress(columns[:head]) end |
#parse_head ⇒ Object
23 24 25 |
# File 'lib/reading/attribute/experiences/progress_subattribute.rb', line 23 def parse_head progress(columns[:head]) end |