Class: EveCrest::Incursion

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ Incursion



4
5
6
7
8
9
10
11
12
13
# File 'lib/incursion.rb', line 4

def initialize(json)
  @aggressor_id = json['aggressorFactionID']['id']
  @staging_system_id = json['stagingSolarSystem']['id']
  @influence = json['influence']
  @type = json['incursionType']
  @state = json['state']
  @has_boss = json['hasBoss']
  @infested_systems = get_system_ids(json['infestedSolarSystems'])
  @constellation_id = json['constellation']['id']
end

Instance Attribute Details

#aggressor_idObject (readonly)

Returns the value of attribute aggressor_id.



3
4
5
# File 'lib/incursion.rb', line 3

def aggressor_id
  @aggressor_id
end

#constellation_idObject (readonly)

Returns the value of attribute constellation_id.



3
4
5
# File 'lib/incursion.rb', line 3

def constellation_id
  @constellation_id
end

#has_bossObject (readonly)

Returns the value of attribute has_boss.



3
4
5
# File 'lib/incursion.rb', line 3

def has_boss
  @has_boss
end

#infested_systemsObject (readonly)

Returns the value of attribute infested_systems.



3
4
5
# File 'lib/incursion.rb', line 3

def infested_systems
  @infested_systems
end

#influenceObject (readonly)

Returns the value of attribute influence.



3
4
5
# File 'lib/incursion.rb', line 3

def influence
  @influence
end

#staging_system_idObject (readonly)

Returns the value of attribute staging_system_id.



3
4
5
# File 'lib/incursion.rb', line 3

def staging_system_id
  @staging_system_id
end

#stateObject (readonly)

Returns the value of attribute state.



3
4
5
# File 'lib/incursion.rb', line 3

def state
  @state
end

#typeObject (readonly)

Returns the value of attribute type.



3
4
5
# File 'lib/incursion.rb', line 3

def type
  @type
end