Class: EveApp::XmlApi::Classes::CorporateMemberTracking

Inherits:
Base
  • Object
show all
Defined in:
lib/eve_app/xml_api/classes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ CorporateMemberTracking

Returns a new instance of CorporateMemberTracking.


221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
# File 'lib/eve_app/xml_api/classes.rb', line 221

def initialize(elem)
  @character_id = elem['characterID'].to_i
  @name = elem['name']
  @start_date = parse_time(elem['startDateTime'])
  @base_id = elem['baseID'].to_i
  @base = elem['base']
  @title = elem['title']
  @logon_date = parse_time(elem['logonDateTime'])
  @logoff_date = parse_time(elem['logoffDateTime'])
  @location_id = elem['locationID'].to_i > 0 ? elem['locationID'].to_i : nil
  @location = elem['location'].presence
  @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.


219
220
221
# File 'lib/eve_app/xml_api/classes.rb', line 219

def base
  @base
end

#base_idObject (readonly)

Returns the value of attribute base_id.


219
220
221
# File 'lib/eve_app/xml_api/classes.rb', line 219

def base_id
  @base_id
end

#character_idObject (readonly)

Returns the value of attribute character_id.


219
220
221
# File 'lib/eve_app/xml_api/classes.rb', line 219

def character_id
  @character_id
end

#grantable_rolesObject (readonly)

Returns the value of attribute grantable_roles.


219
220
221
# File 'lib/eve_app/xml_api/classes.rb', line 219

def grantable_roles
  @grantable_roles
end

#locationObject (readonly)

Returns the value of attribute location.


219
220
221
# File 'lib/eve_app/xml_api/classes.rb', line 219

def location
  @location
end

#location_idObject (readonly)

Returns the value of attribute location_id.


219
220
221
# File 'lib/eve_app/xml_api/classes.rb', line 219

def location_id
  @location_id
end

#logoff_dateObject (readonly)

Returns the value of attribute logoff_date.


219
220
221
# File 'lib/eve_app/xml_api/classes.rb', line 219

def logoff_date
  @logoff_date
end

#logon_dateObject (readonly)

Returns the value of attribute logon_date.


219
220
221
# File 'lib/eve_app/xml_api/classes.rb', line 219

def logon_date
  @logon_date
end

#nameObject (readonly)

Returns the value of attribute name.


219
220
221
# File 'lib/eve_app/xml_api/classes.rb', line 219

def name
  @name
end

#rolesObject (readonly)

Returns the value of attribute roles.


219
220
221
# File 'lib/eve_app/xml_api/classes.rb', line 219

def roles
  @roles
end

#ship_typeObject (readonly)

Returns the value of attribute ship_type.


219
220
221
# File 'lib/eve_app/xml_api/classes.rb', line 219

def ship_type
  @ship_type
end

#ship_type_idObject (readonly)

Returns the value of attribute ship_type_id.


219
220
221
# File 'lib/eve_app/xml_api/classes.rb', line 219

def ship_type_id
  @ship_type_id
end

#start_dateObject (readonly)

Returns the value of attribute start_date.


219
220
221
# File 'lib/eve_app/xml_api/classes.rb', line 219

def start_date
  @start_date
end

#titleObject (readonly)

Returns the value of attribute title.


219
220
221
# File 'lib/eve_app/xml_api/classes.rb', line 219

def title
  @title
end