Class: Adam::Kill::Victim
- Inherits:
-
Object
- Object
- Adam::Kill::Victim
- 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 benil
if the corporation is not in an alliance. -
faction
- A string describing the name of the faction the pilot is involved in. May benil
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
-
#alliance ⇒ Object
Returns the value of attribute alliance.
-
#corporation ⇒ Object
Returns the value of attribute corporation.
-
#damage_taken ⇒ Object
Returns the value of attribute damage_taken.
-
#faction ⇒ Object
Returns the value of attribute faction.
-
#moon ⇒ Object
Returns the value of attribute moon.
-
#pilot ⇒ Object
Returns the value of attribute pilot.
-
#ship ⇒ Object
Returns the value of attribute ship.
Instance Method Summary collapse
-
#initialize {|_self| ... } ⇒ Victim
constructor
A new instance of Victim.
Constructor Details
#initialize {|_self| ... } ⇒ Victim
Returns a new instance of Victim.
141 142 143 |
# File 'lib/adam/kill.rb', line 141 def initialize yield self if block_given? end |
Instance Attribute Details
#alliance ⇒ Object
Returns the value of attribute alliance.
139 140 141 |
# File 'lib/adam/kill.rb', line 139 def alliance @alliance end |
#corporation ⇒ Object
Returns the value of attribute corporation.
139 140 141 |
# File 'lib/adam/kill.rb', line 139 def corporation @corporation end |
#damage_taken ⇒ Object
Returns the value of attribute damage_taken.
139 140 141 |
# File 'lib/adam/kill.rb', line 139 def damage_taken @damage_taken end |
#faction ⇒ Object
Returns the value of attribute faction.
139 140 141 |
# File 'lib/adam/kill.rb', line 139 def faction @faction end |
#moon ⇒ Object
Returns the value of attribute moon.
139 140 141 |
# File 'lib/adam/kill.rb', line 139 def moon @moon end |
#pilot ⇒ Object
Returns the value of attribute pilot.
139 140 141 |
# File 'lib/adam/kill.rb', line 139 def pilot @pilot end |
#ship ⇒ Object
Returns the value of attribute ship.
139 140 141 |
# File 'lib/adam/kill.rb', line 139 def ship @ship end |