eve_online 0.29.0 → 0.30.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +98 -0
- data/.ruby-version +1 -1
- data/Appraisals +23 -0
- data/CHANGELOG.md +16 -0
- data/Gemfile +7 -10
- data/Gemfile.lock +55 -50
- data/Gemfile.mutant.lock +42 -33
- data/README.md +108 -7
- data/Rakefile +2 -2
- data/eve_online.gemspec +28 -27
- data/lib/eve_online.rb +197 -185
- data/lib/eve_online/esi/alliance.rb +6 -6
- data/lib/eve_online/esi/alliance_corporations.rb +4 -3
- data/lib/eve_online/esi/alliance_icon.rb +5 -4
- data/lib/eve_online/esi/alliances.rb +3 -2
- data/lib/eve_online/esi/base.rb +29 -28
- data/lib/eve_online/esi/character.rb +7 -6
- data/lib/eve_online/esi/character_assets.rb +4 -4
- data/lib/eve_online/esi/character_assets_locations.rb +4 -4
- data/lib/eve_online/esi/character_assets_names.rb +4 -4
- data/lib/eve_online/esi/character_attributes.rb +6 -6
- data/lib/eve_online/esi/character_blueprints.rb +4 -4
- data/lib/eve_online/esi/character_bookmark_folders.rb +4 -4
- data/lib/eve_online/esi/character_bookmarks.rb +4 -4
- data/lib/eve_online/esi/character_calendar.rb +4 -4
- data/lib/eve_online/esi/character_calendar_event.rb +4 -5
- data/lib/eve_online/esi/character_clones.rb +7 -7
- data/lib/eve_online/esi/character_corporation_history.rb +4 -3
- data/lib/eve_online/esi/character_fatigue.rb +5 -5
- data/lib/eve_online/esi/character_implants.rb +3 -3
- data/lib/eve_online/esi/character_industry_jobs.rb +4 -4
- data/lib/eve_online/esi/character_killmails_recent.rb +4 -4
- data/lib/eve_online/esi/character_location.rb +5 -5
- data/lib/eve_online/esi/character_loyalty_points.rb +3 -3
- data/lib/eve_online/esi/character_notifications.rb +3 -3
- data/lib/eve_online/esi/character_online.rb +5 -5
- data/lib/eve_online/esi/character_orders.rb +3 -3
- data/lib/eve_online/esi/character_portrait.rb +5 -4
- data/lib/eve_online/esi/character_ship.rb +4 -4
- data/lib/eve_online/esi/character_skill_queue.rb +3 -3
- data/lib/eve_online/esi/character_skills.rb +7 -7
- data/lib/eve_online/esi/character_standings.rb +3 -3
- data/lib/eve_online/esi/character_wallet.rb +4 -4
- data/lib/eve_online/esi/character_wallet_journal.rb +4 -4
- data/lib/eve_online/esi/corporation.rb +8 -7
- data/lib/eve_online/esi/corporation_alliance_history.rb +4 -3
- data/lib/eve_online/esi/corporation_assets.rb +5 -5
- data/lib/eve_online/esi/corporation_assets_locations.rb +5 -5
- data/lib/eve_online/esi/corporation_assets_names.rb +5 -5
- data/lib/eve_online/esi/corporation_blueprints.rb +5 -5
- data/lib/eve_online/esi/corporation_industry_jobs.rb +5 -5
- data/lib/eve_online/esi/corporation_killmails_recent.rb +5 -5
- data/lib/eve_online/esi/corporation_loyalty_store_offers.rb +4 -3
- data/lib/eve_online/esi/corporation_orders.rb +5 -5
- data/lib/eve_online/esi/dogma_attribute.rb +7 -6
- data/lib/eve_online/esi/dogma_attributes.rb +3 -2
- data/lib/eve_online/esi/dogma_effect.rb +11 -11
- data/lib/eve_online/esi/dogma_effects.rb +3 -2
- data/lib/eve_online/esi/market_group.rb +39 -0
- data/lib/eve_online/esi/market_groups.rb +20 -0
- data/lib/eve_online/esi/market_history.rb +5 -4
- data/lib/eve_online/esi/models/aggressor.rb +34 -0
- data/lib/eve_online/esi/models/alliance.rb +8 -8
- data/lib/eve_online/esi/models/alliance_icon.rb +3 -3
- data/lib/eve_online/esi/models/alliance_short.rb +3 -3
- data/lib/eve_online/esi/models/allies.rb +21 -0
- data/lib/eve_online/esi/models/ally.rb +24 -0
- data/lib/eve_online/esi/models/ancestry.rb +7 -7
- data/lib/eve_online/esi/models/asset.rb +9 -9
- data/lib/eve_online/esi/models/asset_location.rb +3 -3
- data/lib/eve_online/esi/models/asset_name.rb +3 -3
- data/lib/eve_online/esi/models/asteroid_belt.rb +4 -4
- data/lib/eve_online/esi/models/attributes.rb +9 -9
- data/lib/eve_online/esi/models/base.rb +2 -2
- data/lib/eve_online/esi/models/bloodline.rb +12 -12
- data/lib/eve_online/esi/models/blueprint.rb +9 -9
- data/lib/eve_online/esi/models/bookmark.rb +11 -11
- data/lib/eve_online/esi/models/bookmark_folder.rb +3 -3
- data/lib/eve_online/esi/models/category.rb +5 -5
- data/lib/eve_online/esi/models/character.rb +13 -13
- data/lib/eve_online/esi/models/character_corporation_history.rb +5 -5
- data/lib/eve_online/esi/models/character_industry_job.rb +23 -23
- data/lib/eve_online/esi/models/character_location.rb +4 -4
- data/lib/eve_online/esi/models/character_order.rb +15 -15
- data/lib/eve_online/esi/models/character_portrait.rb +5 -5
- data/lib/eve_online/esi/models/character_ship.rb +4 -4
- data/lib/eve_online/esi/models/constellation.rb +6 -6
- data/lib/eve_online/esi/models/coordinates.rb +4 -4
- data/lib/eve_online/esi/models/corporation.rb +15 -15
- data/lib/eve_online/esi/models/corporation_alliance_history.rb +5 -5
- data/lib/eve_online/esi/models/corporation_industry_job.rb +23 -23
- data/lib/eve_online/esi/models/corporation_order.rb +16 -16
- data/lib/eve_online/esi/models/defender.rb +34 -0
- data/lib/eve_online/esi/models/dogma_attribute.rb +11 -11
- data/lib/eve_online/esi/models/dogma_attribute_short.rb +3 -3
- data/lib/eve_online/esi/models/dogma_attributes.rb +1 -1
- data/lib/eve_online/esi/models/dogma_effect.rb +22 -22
- data/lib/eve_online/esi/models/dogma_effect_modifier.rb +7 -7
- data/lib/eve_online/esi/models/dogma_effect_modifiers.rb +1 -1
- data/lib/eve_online/esi/models/dogma_effect_short.rb +3 -3
- data/lib/eve_online/esi/models/dogma_effects.rb +1 -1
- data/lib/eve_online/esi/models/event.rb +6 -6
- data/lib/eve_online/esi/models/event_details.rb +11 -11
- data/lib/eve_online/esi/models/faction.rb +11 -11
- data/lib/eve_online/esi/models/fatigue.rb +4 -4
- data/lib/eve_online/esi/models/graphic.rb +9 -9
- data/lib/eve_online/esi/models/group.rb +6 -6
- data/lib/eve_online/esi/models/home_location.rb +3 -3
- data/lib/eve_online/esi/models/jump_clone.rb +6 -6
- data/lib/eve_online/esi/models/killmail_short.rb +3 -3
- data/lib/eve_online/esi/models/loyalty_point.rb +3 -3
- data/lib/eve_online/esi/models/loyalty_store_offer.rb +10 -9
- data/lib/eve_online/esi/models/market_group.rb +38 -0
- data/lib/eve_online/esi/models/market_history.rb +7 -7
- data/lib/eve_online/esi/models/moon.rb +5 -5
- data/lib/eve_online/esi/models/notification.rb +8 -8
- data/lib/eve_online/esi/models/offer_required_item.rb +24 -0
- data/lib/eve_online/esi/models/offer_required_items.rb +21 -0
- data/lib/eve_online/esi/models/online.rb +5 -5
- data/lib/eve_online/esi/models/planet.rb +6 -6
- data/lib/eve_online/esi/models/planet_short.rb +4 -4
- data/lib/eve_online/esi/models/position.rb +4 -4
- data/lib/eve_online/esi/models/race.rb +5 -5
- data/lib/eve_online/esi/models/region.rb +5 -5
- data/lib/eve_online/esi/models/server_status.rb +5 -5
- data/lib/eve_online/esi/models/skill.rb +5 -5
- data/lib/eve_online/esi/models/skill_queue_entry.rb +9 -9
- data/lib/eve_online/esi/models/standing.rb +4 -4
- data/lib/eve_online/esi/models/star.rb +9 -9
- data/lib/eve_online/esi/models/stargate.rb +7 -7
- data/lib/eve_online/esi/models/stargate_destination.rb +3 -3
- data/lib/eve_online/esi/models/station.rb +13 -13
- data/lib/eve_online/esi/models/system.rb +11 -11
- data/lib/eve_online/esi/models/system_jump.rb +3 -3
- data/lib/eve_online/esi/models/system_kill.rb +5 -5
- data/lib/eve_online/esi/models/type.rb +17 -17
- data/lib/eve_online/esi/models/wallet_journal_entry.rb +14 -14
- data/lib/eve_online/esi/models/war.rb +69 -0
- data/lib/eve_online/esi/server_status.rb +4 -3
- data/lib/eve_online/esi/universe_ancestries.rb +4 -3
- data/lib/eve_online/esi/universe_asteroid_belt.rb +5 -4
- data/lib/eve_online/esi/universe_bloodlines.rb +4 -3
- data/lib/eve_online/esi/universe_categories.rb +3 -2
- data/lib/eve_online/esi/universe_category.rb +7 -6
- data/lib/eve_online/esi/universe_constellation.rb +7 -6
- data/lib/eve_online/esi/universe_constellations.rb +3 -2
- data/lib/eve_online/esi/universe_factions.rb +4 -3
- data/lib/eve_online/esi/universe_graphic.rb +7 -6
- data/lib/eve_online/esi/universe_graphics.rb +3 -2
- data/lib/eve_online/esi/universe_group.rb +7 -6
- data/lib/eve_online/esi/universe_groups.rb +4 -3
- data/lib/eve_online/esi/universe_moon.rb +5 -4
- data/lib/eve_online/esi/universe_planet.rb +6 -5
- data/lib/eve_online/esi/universe_races.rb +4 -3
- data/lib/eve_online/esi/universe_region.rb +7 -6
- data/lib/eve_online/esi/universe_regions.rb +3 -2
- data/lib/eve_online/esi/universe_star.rb +6 -6
- data/lib/eve_online/esi/universe_stargate.rb +6 -5
- data/lib/eve_online/esi/universe_station.rb +8 -7
- data/lib/eve_online/esi/universe_structures.rb +4 -3
- data/lib/eve_online/esi/universe_system.rb +8 -7
- data/lib/eve_online/esi/universe_system_jumps.rb +3 -2
- data/lib/eve_online/esi/universe_system_kills.rb +3 -2
- data/lib/eve_online/esi/universe_systems.rb +3 -2
- data/lib/eve_online/esi/universe_type.rb +9 -8
- data/lib/eve_online/esi/universe_types.rb +4 -3
- data/lib/eve_online/esi/war.rb +35 -0
- data/lib/eve_online/esi/war_killmails.rb +5 -4
- data/lib/eve_online/esi/wars.rb +4 -3
- data/lib/eve_online/version.rb +1 -1
- metadata +30 -15
- data/.rubocop-thread_safety.yml +0 -9
- data/.rubocop.yml +0 -14
- data/.rubocop_general.yml +0 -102
- data/.rubocop_rspec.yml +0 -65
- data/.rubocop_todo.yml +0 -0
- data/.travis.yml +0 -100
- data/gemfiles/activesupport_42.gemfile +0 -7
- data/gemfiles/activesupport_50.gemfile +0 -7
- data/gemfiles/activesupport_51.gemfile +0 -7
- data/gemfiles/activesupport_52.gemfile +0 -7
- data/gemfiles/activesupport_60.gemfile +0 -7
- data/gemfiles/activesupport_edge.gemfile +0 -7
@@ -9,28 +9,28 @@ module EveOnline
|
|
9
9
|
category_id: category_id,
|
10
10
|
group_id: group_id,
|
11
11
|
name: name,
|
12
|
-
published: published
|
12
|
+
published: published,
|
13
13
|
}
|
14
14
|
end
|
15
15
|
|
16
16
|
def category_id
|
17
|
-
options[
|
17
|
+
options["category_id"]
|
18
18
|
end
|
19
19
|
|
20
20
|
def group_id
|
21
|
-
options[
|
21
|
+
options["group_id"]
|
22
22
|
end
|
23
23
|
|
24
24
|
def name
|
25
|
-
options[
|
25
|
+
options["name"]
|
26
26
|
end
|
27
27
|
|
28
28
|
def published
|
29
|
-
options[
|
29
|
+
options["published"]
|
30
30
|
end
|
31
31
|
|
32
32
|
def type_ids
|
33
|
-
options[
|
33
|
+
options["types"]
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
@@ -7,16 +7,16 @@ module EveOnline
|
|
7
7
|
def as_json
|
8
8
|
{
|
9
9
|
location_id: location_id,
|
10
|
-
location_type: location_type
|
10
|
+
location_type: location_type,
|
11
11
|
}
|
12
12
|
end
|
13
13
|
|
14
14
|
def location_id
|
15
|
-
options[
|
15
|
+
options["location_id"]
|
16
16
|
end
|
17
17
|
|
18
18
|
def location_type
|
19
|
-
options[
|
19
|
+
options["location_type"]
|
20
20
|
end
|
21
21
|
end
|
22
22
|
end
|
@@ -9,28 +9,28 @@ module EveOnline
|
|
9
9
|
jump_clone_id: jump_clone_id,
|
10
10
|
location_id: location_id,
|
11
11
|
location_type: location_type,
|
12
|
-
name: name
|
12
|
+
name: name,
|
13
13
|
}
|
14
14
|
end
|
15
15
|
|
16
16
|
def implant_ids
|
17
|
-
options[
|
17
|
+
options["implants"]
|
18
18
|
end
|
19
19
|
|
20
20
|
def jump_clone_id
|
21
|
-
options[
|
21
|
+
options["jump_clone_id"]
|
22
22
|
end
|
23
23
|
|
24
24
|
def location_id
|
25
|
-
options[
|
25
|
+
options["location_id"]
|
26
26
|
end
|
27
27
|
|
28
28
|
def location_type
|
29
|
-
options[
|
29
|
+
options["location_type"]
|
30
30
|
end
|
31
31
|
|
32
32
|
def name
|
33
|
-
options[
|
33
|
+
options["name"]
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
@@ -7,16 +7,16 @@ module EveOnline
|
|
7
7
|
def as_json
|
8
8
|
{
|
9
9
|
killmail_hash: killmail_hash,
|
10
|
-
killmail_id: killmail_id
|
10
|
+
killmail_id: killmail_id,
|
11
11
|
}
|
12
12
|
end
|
13
13
|
|
14
14
|
def killmail_hash
|
15
|
-
options[
|
15
|
+
options["killmail_hash"]
|
16
16
|
end
|
17
17
|
|
18
18
|
def killmail_id
|
19
|
-
options[
|
19
|
+
options["killmail_id"]
|
20
20
|
end
|
21
21
|
end
|
22
22
|
end
|
@@ -7,16 +7,16 @@ module EveOnline
|
|
7
7
|
def as_json
|
8
8
|
{
|
9
9
|
corporation_id: corporation_id,
|
10
|
-
loyalty_points: loyalty_points
|
10
|
+
loyalty_points: loyalty_points,
|
11
11
|
}
|
12
12
|
end
|
13
13
|
|
14
14
|
def corporation_id
|
15
|
-
options[
|
15
|
+
options["corporation_id"]
|
16
16
|
end
|
17
17
|
|
18
18
|
def loyalty_points
|
19
|
-
options[
|
19
|
+
options["loyalty_points"]
|
20
20
|
end
|
21
21
|
end
|
22
22
|
end
|
@@ -11,36 +11,37 @@ module EveOnline
|
|
11
11
|
lp_cost: lp_cost,
|
12
12
|
offer_id: offer_id,
|
13
13
|
quantity: quantity,
|
14
|
-
type_id: type_id
|
14
|
+
type_id: type_id,
|
15
15
|
}
|
16
16
|
end
|
17
17
|
|
18
18
|
def ak_cost
|
19
|
-
options[
|
19
|
+
options["ak_cost"]
|
20
20
|
end
|
21
21
|
|
22
22
|
def isk_cost
|
23
|
-
options[
|
23
|
+
options["isk_cost"]
|
24
24
|
end
|
25
25
|
|
26
26
|
def lp_cost
|
27
|
-
options[
|
27
|
+
options["lp_cost"]
|
28
28
|
end
|
29
29
|
|
30
30
|
def offer_id
|
31
|
-
options[
|
31
|
+
options["offer_id"]
|
32
32
|
end
|
33
33
|
|
34
34
|
def quantity
|
35
|
-
options[
|
35
|
+
options["quantity"]
|
36
36
|
end
|
37
37
|
|
38
38
|
def type_id
|
39
|
-
options[
|
39
|
+
options["type_id"]
|
40
40
|
end
|
41
41
|
|
42
|
-
|
43
|
-
|
42
|
+
def offer_required_items
|
43
|
+
@offer_required_items ||= OfferRequiredItems.new(options["required_items"]).offer_required_items
|
44
|
+
end
|
44
45
|
end
|
45
46
|
end
|
46
47
|
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module EveOnline
|
4
|
+
module ESI
|
5
|
+
module Models
|
6
|
+
class MarketGroup < Base
|
7
|
+
def as_json
|
8
|
+
{
|
9
|
+
description: description,
|
10
|
+
market_group_id: market_group_id,
|
11
|
+
name: name,
|
12
|
+
parent_group_id: parent_group_id,
|
13
|
+
}
|
14
|
+
end
|
15
|
+
|
16
|
+
def description
|
17
|
+
options["description"]
|
18
|
+
end
|
19
|
+
|
20
|
+
def market_group_id
|
21
|
+
options["market_group_id"]
|
22
|
+
end
|
23
|
+
|
24
|
+
def name
|
25
|
+
options["name"]
|
26
|
+
end
|
27
|
+
|
28
|
+
def parent_group_id
|
29
|
+
options["parent_group_id"]
|
30
|
+
end
|
31
|
+
|
32
|
+
def type_ids
|
33
|
+
options["types"]
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -11,34 +11,34 @@ module EveOnline
|
|
11
11
|
highest: highest,
|
12
12
|
lowest: lowest,
|
13
13
|
order_count: order_count,
|
14
|
-
volume: volume
|
14
|
+
volume: volume,
|
15
15
|
}
|
16
16
|
end
|
17
17
|
|
18
18
|
def average
|
19
|
-
options[
|
19
|
+
options["average"]
|
20
20
|
end
|
21
21
|
|
22
22
|
def date
|
23
|
-
date = options[
|
23
|
+
date = options["date"]
|
24
24
|
|
25
25
|
parse_datetime_with_timezone(date) if date
|
26
26
|
end
|
27
27
|
|
28
28
|
def highest
|
29
|
-
options[
|
29
|
+
options["highest"]
|
30
30
|
end
|
31
31
|
|
32
32
|
def lowest
|
33
|
-
options[
|
33
|
+
options["lowest"]
|
34
34
|
end
|
35
35
|
|
36
36
|
def order_count
|
37
|
-
options[
|
37
|
+
options["order_count"]
|
38
38
|
end
|
39
39
|
|
40
40
|
def volume
|
41
|
-
options[
|
41
|
+
options["volume"]
|
42
42
|
end
|
43
43
|
end
|
44
44
|
end
|
@@ -8,24 +8,24 @@ module EveOnline
|
|
8
8
|
{
|
9
9
|
moon_id: moon_id,
|
10
10
|
name: name,
|
11
|
-
system_id: system_id
|
11
|
+
system_id: system_id,
|
12
12
|
}
|
13
13
|
end
|
14
14
|
|
15
15
|
def moon_id
|
16
|
-
options[
|
16
|
+
options["moon_id"]
|
17
17
|
end
|
18
18
|
|
19
19
|
def name
|
20
|
-
options[
|
20
|
+
options["name"]
|
21
21
|
end
|
22
22
|
|
23
23
|
def system_id
|
24
|
-
options[
|
24
|
+
options["system_id"]
|
25
25
|
end
|
26
26
|
|
27
27
|
def position
|
28
|
-
@position ||= Position.new(options[
|
28
|
+
@position ||= Position.new(options["position"])
|
29
29
|
end
|
30
30
|
end
|
31
31
|
end
|
@@ -12,38 +12,38 @@ module EveOnline
|
|
12
12
|
sender_type: sender_type,
|
13
13
|
text: text,
|
14
14
|
timestamp: timestamp,
|
15
|
-
type: type
|
15
|
+
type: type,
|
16
16
|
}
|
17
17
|
end
|
18
18
|
|
19
19
|
def is_read
|
20
|
-
options[
|
20
|
+
options["is_read"]
|
21
21
|
end
|
22
22
|
|
23
23
|
def notification_id
|
24
|
-
options[
|
24
|
+
options["notification_id"]
|
25
25
|
end
|
26
26
|
|
27
27
|
def sender_id
|
28
|
-
options[
|
28
|
+
options["sender_id"]
|
29
29
|
end
|
30
30
|
|
31
31
|
def sender_type
|
32
|
-
options[
|
32
|
+
options["sender_type"]
|
33
33
|
end
|
34
34
|
|
35
35
|
def text
|
36
|
-
options[
|
36
|
+
options["text"]
|
37
37
|
end
|
38
38
|
|
39
39
|
def timestamp
|
40
|
-
timestamp = options[
|
40
|
+
timestamp = options["timestamp"]
|
41
41
|
|
42
42
|
parse_datetime_with_timezone(timestamp) if timestamp
|
43
43
|
end
|
44
44
|
|
45
45
|
def type
|
46
|
-
options[
|
46
|
+
options["type"]
|
47
47
|
end
|
48
48
|
end
|
49
49
|
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module EveOnline
|
4
|
+
module ESI
|
5
|
+
module Models
|
6
|
+
class OfferRequiredItem < Base
|
7
|
+
def as_json
|
8
|
+
{
|
9
|
+
quantity: quantity,
|
10
|
+
type_id: type_id,
|
11
|
+
}
|
12
|
+
end
|
13
|
+
|
14
|
+
def quantity
|
15
|
+
options["quantity"]
|
16
|
+
end
|
17
|
+
|
18
|
+
def type_id
|
19
|
+
options["type_id"]
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module EveOnline
|
4
|
+
module ESI
|
5
|
+
module Models
|
6
|
+
class OfferRequiredItems < Base
|
7
|
+
def offer_required_items
|
8
|
+
output = []
|
9
|
+
|
10
|
+
return output unless options.is_a?(Array)
|
11
|
+
|
12
|
+
options.each do |offer_required_item|
|
13
|
+
output << OfferRequiredItem.new(offer_required_item)
|
14
|
+
end
|
15
|
+
|
16
|
+
output
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -9,28 +9,28 @@ module EveOnline
|
|
9
9
|
last_login: last_login,
|
10
10
|
last_logout: last_logout,
|
11
11
|
logins: logins,
|
12
|
-
online: online
|
12
|
+
online: online,
|
13
13
|
}
|
14
14
|
end
|
15
15
|
|
16
16
|
def last_login
|
17
|
-
last_login = options[
|
17
|
+
last_login = options["last_login"]
|
18
18
|
|
19
19
|
parse_datetime_with_timezone(last_login) if last_login
|
20
20
|
end
|
21
21
|
|
22
22
|
def last_logout
|
23
|
-
last_logout = options[
|
23
|
+
last_logout = options["last_logout"]
|
24
24
|
|
25
25
|
parse_datetime_with_timezone(last_logout) if last_logout
|
26
26
|
end
|
27
27
|
|
28
28
|
def logins
|
29
|
-
options[
|
29
|
+
options["logins"]
|
30
30
|
end
|
31
31
|
|
32
32
|
def online
|
33
|
-
options[
|
33
|
+
options["online"]
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
@@ -9,28 +9,28 @@ module EveOnline
|
|
9
9
|
name: name,
|
10
10
|
planet_id: planet_id,
|
11
11
|
system_id: system_id,
|
12
|
-
type_id: type_id
|
12
|
+
type_id: type_id,
|
13
13
|
}
|
14
14
|
end
|
15
15
|
|
16
16
|
def name
|
17
|
-
options[
|
17
|
+
options["name"]
|
18
18
|
end
|
19
19
|
|
20
20
|
def planet_id
|
21
|
-
options[
|
21
|
+
options["planet_id"]
|
22
22
|
end
|
23
23
|
|
24
24
|
def system_id
|
25
|
-
options[
|
25
|
+
options["system_id"]
|
26
26
|
end
|
27
27
|
|
28
28
|
def type_id
|
29
|
-
options[
|
29
|
+
options["type_id"]
|
30
30
|
end
|
31
31
|
|
32
32
|
def position
|
33
|
-
@position ||= Position.new(options[
|
33
|
+
@position ||= Position.new(options["position"])
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|