Class: EveCrest::Incursion
- Inherits:
-
Object
- Object
- EveCrest::Incursion
- Defined in:
- lib/incursion.rb
Instance Attribute Summary collapse
-
#aggressor_id ⇒ Object
readonly
Returns the value of attribute aggressor_id.
-
#constellation_id ⇒ Object
readonly
Returns the value of attribute constellation_id.
-
#has_boss ⇒ Object
readonly
Returns the value of attribute has_boss.
-
#infested_systems ⇒ Object
readonly
Returns the value of attribute infested_systems.
-
#influence ⇒ Object
readonly
Returns the value of attribute influence.
-
#staging_system_id ⇒ Object
readonly
Returns the value of attribute staging_system_id.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(json) ⇒ Incursion
constructor
A new instance of Incursion.
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_id ⇒ Object (readonly)
Returns the value of attribute aggressor_id.
3 4 5 |
# File 'lib/incursion.rb', line 3 def aggressor_id @aggressor_id end |
#constellation_id ⇒ Object (readonly)
Returns the value of attribute constellation_id.
3 4 5 |
# File 'lib/incursion.rb', line 3 def constellation_id @constellation_id end |
#has_boss ⇒ Object (readonly)
Returns the value of attribute has_boss.
3 4 5 |
# File 'lib/incursion.rb', line 3 def has_boss @has_boss end |
#infested_systems ⇒ Object (readonly)
Returns the value of attribute infested_systems.
3 4 5 |
# File 'lib/incursion.rb', line 3 def infested_systems @infested_systems end |
#influence ⇒ Object (readonly)
Returns the value of attribute influence.
3 4 5 |
# File 'lib/incursion.rb', line 3 def influence @influence end |
#staging_system_id ⇒ Object (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 |
#state ⇒ Object (readonly)
Returns the value of attribute state.
3 4 5 |
# File 'lib/incursion.rb', line 3 def state @state end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/incursion.rb', line 3 def type @type end |