Class: Evilution::Session::Diff::SummaryDiff Private
- Inherits:
-
Struct
- Object
- Struct
- Evilution::Session::Diff::SummaryDiff
- Defined in:
- lib/evilution/session/diff.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
-
#base_killed ⇒ Object
Returns the value of attribute base_killed.
-
#base_score ⇒ Object
Returns the value of attribute base_score.
-
#base_survived ⇒ Object
Returns the value of attribute base_survived.
-
#base_total ⇒ Object
Returns the value of attribute base_total.
-
#head_killed ⇒ Object
Returns the value of attribute head_killed.
-
#head_score ⇒ Object
Returns the value of attribute head_score.
-
#head_survived ⇒ Object
Returns the value of attribute head_survived.
-
#head_total ⇒ Object
Returns the value of attribute head_total.
-
#score_delta ⇒ Object
Returns the value of attribute score_delta.
Instance Method Summary collapse
- #to_h ⇒ Object private
Instance Attribute Details
#base_killed ⇒ Object
Returns the value of attribute base_killed
17 18 19 |
# File 'lib/evilution/session/diff.rb', line 17 def base_killed @base_killed end |
#base_score ⇒ Object
Returns the value of attribute base_score
17 18 19 |
# File 'lib/evilution/session/diff.rb', line 17 def base_score @base_score end |
#base_survived ⇒ Object
Returns the value of attribute base_survived
17 18 19 |
# File 'lib/evilution/session/diff.rb', line 17 def base_survived @base_survived end |
#base_total ⇒ Object
Returns the value of attribute base_total
17 18 19 |
# File 'lib/evilution/session/diff.rb', line 17 def base_total @base_total end |
#head_killed ⇒ Object
Returns the value of attribute head_killed
17 18 19 |
# File 'lib/evilution/session/diff.rb', line 17 def head_killed @head_killed end |
#head_score ⇒ Object
Returns the value of attribute head_score
17 18 19 |
# File 'lib/evilution/session/diff.rb', line 17 def head_score @head_score end |
#head_survived ⇒ Object
Returns the value of attribute head_survived
17 18 19 |
# File 'lib/evilution/session/diff.rb', line 17 def head_survived @head_survived end |
#head_total ⇒ Object
Returns the value of attribute head_total
17 18 19 |
# File 'lib/evilution/session/diff.rb', line 17 def head_total @head_total end |
#score_delta ⇒ Object
Returns the value of attribute score_delta
17 18 19 |
# File 'lib/evilution/session/diff.rb', line 17 def score_delta @score_delta end |
Instance Method Details
#to_h ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/evilution/session/diff.rb', line 23 def to_h { "base_score" => base_score, "head_score" => head_score, "score_delta" => score_delta, "base_survived" => base_survived, "head_survived" => head_survived, "base_total" => base_total, "head_total" => head_total, "base_killed" => base_killed, "head_killed" => head_killed } end |