Class: Adam::Kill::Victim

Inherits:
Object
  • Object
show all
Defined in:
lib/adam/kill.rb

Overview

Instances of the Kill class represent a victim of a kill.

Accessors:

  • pilot - A string describing the name of the pilot.

  • corporation - A string describing the name of the corporation the pilot is enrolled in.

  • alliance - A string describing the name of the alliance the corporation is a member of. May be nil if the corporation is not in an alliance.

  • faction - A string describing the name of the faction the pilot is involved in. May be nil if the pilot is not in a faction.

  • ship - A string describing the name of the ship that was destroyed.

  • damage_taken - An integer describing damage taken.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ Victim

Returns a new instance of Victim.

Yields:

  • (_self)

Yield Parameters:



137
138
139
# File 'lib/adam/kill.rb', line 137

def initialize
  yield self if block_given?
end

Instance Attribute Details

#allianceObject

Returns the value of attribute alliance.



135
136
137
# File 'lib/adam/kill.rb', line 135

def alliance
  @alliance
end

#corporationObject

Returns the value of attribute corporation.



135
136
137
# File 'lib/adam/kill.rb', line 135

def corporation
  @corporation
end

#damage_takenObject

Returns the value of attribute damage_taken.



135
136
137
# File 'lib/adam/kill.rb', line 135

def damage_taken
  @damage_taken
end

#factionObject

Returns the value of attribute faction.



135
136
137
# File 'lib/adam/kill.rb', line 135

def faction
  @faction
end

#pilotObject

Returns the value of attribute pilot.



135
136
137
# File 'lib/adam/kill.rb', line 135

def pilot
  @pilot
end

#shipObject

Returns the value of attribute ship.



135
136
137
# File 'lib/adam/kill.rb', line 135

def ship
  @ship
end