Class: Reve::Classes::MemberTracking

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

Overview

Holds the result of the Reve::API#member_tracking call for big brother.

  • character_id ( Fixnum ) - ID of the Character

  • character_name ( String ) - Name of the Character

  • start_time ( Time ) - When the Character joined the Corporation

  • base_id ( Fixnum ) - ID of the Station (Starbase too?) where the Character calls home

  • base ( String ) - Name of the Station (Starbase?) where the Character calls home

  • title ( String ) - Title of the Character

  • logon_time ( Time | NilClass ) - When the Character last logged on (or nil for non-CEOs)

  • logoff_time ( Time | NilClass ) - When the Character last logged off (or nil for non-CEOs)

  • location_id ( Fixnum ) - ID of the Station (Starbase too?) where the Character last/currently is

  • location ( String ) - Name of the Station (Starbase?) where the Character last/currently is

  • ship_type_id ( Fixnum ) - Type ID of the ship the Character is flying. (Refer to CCP database dump invtypes)

  • ship_type ( String ) - Name of the type of ship the Character is flying

  • roles ( String ) - List of roles for the Character

  • grantable_roles ( String ) - List of grantable roles for the Character

See Also: Reve::API#member_tracking

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ MemberTracking

:nodoc:



1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
# File 'lib/reve/classes.rb', line 1067

def initialize(elem) #:nodoc:
  @character_id    = elem['characterID'].to_i
  @character_name  = elem['name']
  @start_time      = elem['startDateTime'].to_time
  @base_id         = elem['baseID'].to_i
  @base            = elem['base']
  @title           = elem['title']
  @logon_time      = elem['logonDateTime'].to_time rescue nil # can be nil for non CEOs
  @logoff_time     = elem['logoffDateTime'].to_time rescue nil # Can be nil for non CEOs
  @location_id     = elem['locationID']
  @location        = elem['location']
  @ship_type_id    = elem['shipTypeID'].to_i
  @ship_type       = elem['shipType']
  @roles           = elem['roles']
  @grantable_roles = elem['grantableRoles']
end

Instance Attribute Details

#baseObject (readonly)

Returns the value of attribute base.



1065
1066
1067
# File 'lib/reve/classes.rb', line 1065

def base
  @base
end

#base_idObject (readonly)

Returns the value of attribute base_id.



1065
1066
1067
# File 'lib/reve/classes.rb', line 1065

def base_id
  @base_id
end

#character_idObject (readonly)

Returns the value of attribute character_id.



1065
1066
1067
# File 'lib/reve/classes.rb', line 1065

def character_id
  @character_id
end

#character_nameObject (readonly)

Returns the value of attribute character_name.



1065
1066
1067
# File 'lib/reve/classes.rb', line 1065

def character_name
  @character_name
end

#grantable_rolesObject (readonly)

Returns the value of attribute grantable_roles.



1065
1066
1067
# File 'lib/reve/classes.rb', line 1065

def grantable_roles
  @grantable_roles
end

#locationObject (readonly)

Returns the value of attribute location.



1065
1066
1067
# File 'lib/reve/classes.rb', line 1065

def location
  @location
end

#location_idObject (readonly)

Returns the value of attribute location_id.



1065
1066
1067
# File 'lib/reve/classes.rb', line 1065

def location_id
  @location_id
end

#logoff_timeObject (readonly)

Returns the value of attribute logoff_time.



1065
1066
1067
# File 'lib/reve/classes.rb', line 1065

def logoff_time
  @logoff_time
end

#logon_timeObject (readonly)

Returns the value of attribute logon_time.



1065
1066
1067
# File 'lib/reve/classes.rb', line 1065

def logon_time
  @logon_time
end

#rolesObject (readonly)

Returns the value of attribute roles.



1065
1066
1067
# File 'lib/reve/classes.rb', line 1065

def roles
  @roles
end

#ship_typeObject (readonly)

Returns the value of attribute ship_type.



1065
1066
1067
# File 'lib/reve/classes.rb', line 1065

def ship_type
  @ship_type
end

#ship_type_idObject (readonly)

Returns the value of attribute ship_type_id.



1065
1066
1067
# File 'lib/reve/classes.rb', line 1065

def ship_type_id
  @ship_type_id
end

#start_timeObject (readonly)

Returns the value of attribute start_time.



1065
1066
1067
# File 'lib/reve/classes.rb', line 1065

def start_time
  @start_time
end

#titleObject (readonly)

Returns the value of attribute title.



1065
1066
1067
# File 'lib/reve/classes.rb', line 1065

def title
  @title
end