Class: Shiftzilla::SnapData
- Inherits:
-
Object
- Object
- Shiftzilla::SnapData
- Defined in:
- lib/shiftzilla/snap_data.rb
Instance Attribute Summary collapse
-
#bug_ids ⇒ Object
Returns the value of attribute bug_ids.
-
#cc_ids ⇒ Object
Returns the value of attribute cc_ids.
-
#closed_bugs ⇒ Object
Returns the value of attribute closed_bugs.
-
#closed_cc ⇒ Object
Returns the value of attribute closed_cc.
-
#closed_tb ⇒ Object
Returns the value of attribute closed_tb.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#new_bugs ⇒ Object
Returns the value of attribute new_bugs.
-
#new_cc ⇒ Object
Returns the value of attribute new_cc.
-
#new_tb ⇒ Object
Returns the value of attribute new_tb.
-
#tb_ids ⇒ Object
Returns the value of attribute tb_ids.
Instance Method Summary collapse
-
#initialize(snapshot) ⇒ SnapData
constructor
A new instance of SnapData.
- #total_bugs ⇒ Object
- #total_cc ⇒ Object
- #total_tb ⇒ Object
Constructor Details
#initialize(snapshot) ⇒ SnapData
Returns a new instance of SnapData.
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/shiftzilla/snap_data.rb', line 6 def initialize(snapshot) @id = snapshot @bug_ids = [] @tb_ids = [] @cc_ids = [] @new_bugs = 0 @closed_bugs = 0 @new_tb = 0 @closed_tb = 0 @new_cc = 0 @closed_cc = 0 end |
Instance Attribute Details
#bug_ids ⇒ Object
Returns the value of attribute bug_ids.
4 5 6 |
# File 'lib/shiftzilla/snap_data.rb', line 4 def bug_ids @bug_ids end |
#cc_ids ⇒ Object
Returns the value of attribute cc_ids.
4 5 6 |
# File 'lib/shiftzilla/snap_data.rb', line 4 def cc_ids @cc_ids end |
#closed_bugs ⇒ Object
Returns the value of attribute closed_bugs.
4 5 6 |
# File 'lib/shiftzilla/snap_data.rb', line 4 def closed_bugs @closed_bugs end |
#closed_cc ⇒ Object
Returns the value of attribute closed_cc.
4 5 6 |
# File 'lib/shiftzilla/snap_data.rb', line 4 def closed_cc @closed_cc end |
#closed_tb ⇒ Object
Returns the value of attribute closed_tb.
4 5 6 |
# File 'lib/shiftzilla/snap_data.rb', line 4 def closed_tb @closed_tb end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/shiftzilla/snap_data.rb', line 3 def id @id end |
#new_bugs ⇒ Object
Returns the value of attribute new_bugs.
4 5 6 |
# File 'lib/shiftzilla/snap_data.rb', line 4 def new_bugs @new_bugs end |
#new_cc ⇒ Object
Returns the value of attribute new_cc.
4 5 6 |
# File 'lib/shiftzilla/snap_data.rb', line 4 def new_cc @new_cc end |
#new_tb ⇒ Object
Returns the value of attribute new_tb.
4 5 6 |
# File 'lib/shiftzilla/snap_data.rb', line 4 def new_tb @new_tb end |
#tb_ids ⇒ Object
Returns the value of attribute tb_ids.
4 5 6 |
# File 'lib/shiftzilla/snap_data.rb', line 4 def tb_ids @tb_ids end |
Instance Method Details
#total_bugs ⇒ Object
19 20 21 |
# File 'lib/shiftzilla/snap_data.rb', line 19 def total_bugs @bug_ids.length end |
#total_cc ⇒ Object
27 28 29 |
# File 'lib/shiftzilla/snap_data.rb', line 27 def total_cc @cc_ids.length end |
#total_tb ⇒ Object
23 24 25 |
# File 'lib/shiftzilla/snap_data.rb', line 23 def total_tb @tb_ids.length end |