Class: Reve::Classes::MapKill

Inherits:
Object
  • Object
show all
Defined in:
lib/reve/classes.rb

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

Instance Method Summary collapse

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_killsObject (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_killsObject (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_killsObject (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_idObject (readonly)

Returns the value of attribute system_id.



1039
1040
1041
# File 'lib/reve/classes.rb', line 1039

def system_id
  @system_id
end