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:



141
142
143
# File 'lib/adam/kill.rb', line 141

def initialize
  yield self if block_given?
end

Instance Attribute Details

#allianceObject

Returns the value of attribute alliance.



139
140
141
# File 'lib/adam/kill.rb', line 139

def alliance
  @alliance
end

#corporationObject

Returns the value of attribute corporation.



139
140
141
# File 'lib/adam/kill.rb', line 139

def corporation
  @corporation
end

#damage_takenObject

Returns the value of attribute damage_taken.



139
140
141
# File 'lib/adam/kill.rb', line 139

def damage_taken
  @damage_taken
end

#factionObject

Returns the value of attribute faction.



139
140
141
# File 'lib/adam/kill.rb', line 139

def faction
  @faction
end

#moonObject

Returns the value of attribute moon.



139
140
141
# File 'lib/adam/kill.rb', line 139

def moon
  @moon
end

#pilotObject

Returns the value of attribute pilot.



139
140
141
# File 'lib/adam/kill.rb', line 139

def pilot
  @pilot
end

#shipObject

Returns the value of attribute ship.



139
140
141
# File 'lib/adam/kill.rb', line 139

def ship
  @ship
end