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
-
#faction_kills ⇒ Object
readonly
Returns the value of attribute faction_kills.
-
#pod_kills ⇒ Object
readonly
Returns the value of attribute pod_kills.
-
#ship_kills ⇒ Object
readonly
Returns the value of attribute ship_kills.
-
#system_id ⇒ Object
readonly
Returns the value of attribute system_id.
Instance Method Summary collapse
-
#initialize(elem) ⇒ MapKill
constructor
:nodoc:.
Constructor Details
#initialize(elem) ⇒ MapKill
:nodoc:
1130 1131 1132 1133 1134 1135 |
# File 'lib/reve/classes.rb', line 1130 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
#faction_kills ⇒ Object (readonly)
Returns the value of attribute faction_kills.
1129 1130 1131 |
# File 'lib/reve/classes.rb', line 1129 def faction_kills @faction_kills end |
#pod_kills ⇒ Object (readonly)
Returns the value of attribute pod_kills.
1129 1130 1131 |
# File 'lib/reve/classes.rb', line 1129 def pod_kills @pod_kills end |
#ship_kills ⇒ Object (readonly)
Returns the value of attribute ship_kills.
1129 1130 1131 |
# File 'lib/reve/classes.rb', line 1129 def ship_kills @ship_kills end |
#system_id ⇒ Object (readonly)
Returns the value of attribute system_id.
1129 1130 1131 |
# File 'lib/reve/classes.rb', line 1129 def system_id @system_id end |