Class: SeedsHelper::Stats
- Inherits:
-
Struct
- Object
- Struct
- SeedsHelper::Stats
- Defined in:
- /var/apps/qpixel/app/helpers/seeds_helper.rb
Instance Attribute Summary collapse
-
#created ⇒ Object
Returns the value of attribute created.
-
#errored ⇒ Object
Returns the value of attribute errored.
-
#skipped ⇒ Object
Returns the value of attribute skipped.
-
#updated ⇒ Object
Returns the value of attribute updated.
Instance Method Summary collapse
Instance Attribute Details
#created ⇒ Object
Returns the value of attribute created
38 39 40 |
# File '/var/apps/qpixel/app/helpers/seeds_helper.rb', line 38 def created @created end |
#errored ⇒ Object
Returns the value of attribute errored
38 39 40 |
# File '/var/apps/qpixel/app/helpers/seeds_helper.rb', line 38 def errored @errored end |
#skipped ⇒ Object
Returns the value of attribute skipped
38 39 40 |
# File '/var/apps/qpixel/app/helpers/seeds_helper.rb', line 38 def skipped @skipped end |
#updated ⇒ Object
Returns the value of attribute updated
38 39 40 |
# File '/var/apps/qpixel/app/helpers/seeds_helper.rb', line 38 def updated @updated end |
Instance Method Details
#<<(other) ⇒ Object
45 46 47 48 49 |
# File '/var/apps/qpixel/app/helpers/seeds_helper.rb', line 45 def <<(other) members.each do |member| send("add_#{member}", other[member]) end end |
#print ⇒ Object
51 52 53 54 55 |
# File '/var/apps/qpixel/app/helpers/seeds_helper.rb', line 51 def print members.map { |m| self[m]&.positive? ? "#{m} #{self[m]}" : nil } .compact .join(', ') end |