Class: Evilution::Session::Diff::SummaryDiff Private

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#base_killedObject

Returns the value of attribute base_killed

Returns:

  • (Object)

    the current value of base_killed



17
18
19
# File 'lib/evilution/session/diff.rb', line 17

def base_killed
  @base_killed
end

#base_scoreObject

Returns the value of attribute base_score

Returns:

  • (Object)

    the current value of base_score



17
18
19
# File 'lib/evilution/session/diff.rb', line 17

def base_score
  @base_score
end

#base_survivedObject

Returns the value of attribute base_survived

Returns:

  • (Object)

    the current value of base_survived



17
18
19
# File 'lib/evilution/session/diff.rb', line 17

def base_survived
  @base_survived
end

#base_totalObject

Returns the value of attribute base_total

Returns:

  • (Object)

    the current value of base_total



17
18
19
# File 'lib/evilution/session/diff.rb', line 17

def base_total
  @base_total
end

#head_killedObject

Returns the value of attribute head_killed

Returns:

  • (Object)

    the current value of head_killed



17
18
19
# File 'lib/evilution/session/diff.rb', line 17

def head_killed
  @head_killed
end

#head_scoreObject

Returns the value of attribute head_score

Returns:

  • (Object)

    the current value of head_score



17
18
19
# File 'lib/evilution/session/diff.rb', line 17

def head_score
  @head_score
end

#head_survivedObject

Returns the value of attribute head_survived

Returns:

  • (Object)

    the current value of head_survived



17
18
19
# File 'lib/evilution/session/diff.rb', line 17

def head_survived
  @head_survived
end

#head_totalObject

Returns the value of attribute head_total

Returns:

  • (Object)

    the current value of head_total



17
18
19
# File 'lib/evilution/session/diff.rb', line 17

def head_total
  @head_total
end

#score_deltaObject

Returns the value of attribute score_delta

Returns:

  • (Object)

    the current value of score_delta



17
18
19
# File 'lib/evilution/session/diff.rb', line 17

def score_delta
  @score_delta
end

Instance Method Details

#to_hObject

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