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:
1040 1041 1042 1043 1044 1045 |
# File 'lib/reve/classes.rb', line 1040 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.
1039 1040 1041 |
# File 'lib/reve/classes.rb', line 1039 def faction_kills @faction_kills end |
#pod_kills ⇒ Object (readonly)
Returns the value of attribute pod_kills.
1039 1040 1041 |
# File 'lib/reve/classes.rb', line 1039 def pod_kills @pod_kills end |
#ship_kills ⇒ Object (readonly)
Returns the value of attribute ship_kills.
1039 1040 1041 |
# File 'lib/reve/classes.rb', line 1039 def ship_kills @ship_kills end |
#system_id ⇒ Object (readonly)
Returns the value of attribute system_id.
1039 1040 1041 |
# File 'lib/reve/classes.rb', line 1039 def system_id @system_id end |