Class: Reve::Classes::MapKill
Overview
Used for the Reve::API#map_kills method. If there are no kills it's not listed. Attributes
-
system_id ( Fixnum ) - ID of the System
-
ship_kills ( Fixnum ) - Number of ships killed
-
faction_kills ( Fixnum ) - Number of faction ships killed (NPC Pirates)
-
pod_kills ( Fixnum ) - Number of podkills
See also Reve::API#map_kills, MapJump
Instance Attribute Summary (collapse)
-
- (Object) faction_kills
readonly
Returns the value of attribute faction_kills.
-
- (Object) pod_kills
readonly
Returns the value of attribute pod_kills.
-
- (Object) ship_kills
readonly
Returns the value of attribute ship_kills.
-
- (Object) system_id
readonly
Returns the value of attribute system_id.
Instance Method Summary (collapse)
-
- (MapKill) initialize(elem)
constructor
:nodoc:.
Constructor Details
- (MapKill) initialize(elem)
:nodoc:
1083 1084 1085 1086 1087 1088 |
# File 'lib/reve/classes.rb', line 1083 def initialize(elem) #:nodoc: @system_id = elem['solarSystemID'].to_i @ship_kills = elem['shipKills'].to_i @faction_kills = elem['factionKills'].to_i @pod_kills = elem['podKills'].to_i end |
Instance Attribute Details
- (Object) faction_kills (readonly)
Returns the value of attribute faction_kills
1082 1083 1084 |
# File 'lib/reve/classes.rb', line 1082 def faction_kills @faction_kills end |
- (Object) pod_kills (readonly)
Returns the value of attribute pod_kills
1082 1083 1084 |
# File 'lib/reve/classes.rb', line 1082 def pod_kills @pod_kills end |
- (Object) ship_kills (readonly)
Returns the value of attribute ship_kills
1082 1083 1084 |
# File 'lib/reve/classes.rb', line 1082 def ship_kills @ship_kills end |
- (Object) system_id (readonly)
Returns the value of attribute system_id
1082 1083 1084 |
# File 'lib/reve/classes.rb', line 1082 def system_id @system_id end |