eve_online 0.16.0 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/.mdlrc +1 -0
  3. data/.travis.yml +11 -2
  4. data/CHANGELOG.md +43 -17
  5. data/Gemfile.lock +37 -28
  6. data/Gemfile.mutant +0 -4
  7. data/Gemfile.mutant.lock +154 -0
  8. data/README.md +334 -302
  9. data/TODO.md +4 -0
  10. data/eve_online.gemspec +1 -1
  11. data/lib/eve_online.rb +2 -2
  12. data/lib/eve_online/esi/alliance.rb +6 -6
  13. data/lib/eve_online/esi/alliance_corporations.rb +3 -3
  14. data/lib/eve_online/esi/alliance_icon.rb +3 -3
  15. data/lib/eve_online/esi/alliances.rb +2 -2
  16. data/lib/eve_online/esi/ancestries.rb +2 -2
  17. data/lib/eve_online/esi/base.rb +3 -2
  18. data/lib/eve_online/esi/bloodlines.rb +2 -2
  19. data/lib/eve_online/esi/character.rb +6 -6
  20. data/lib/eve_online/esi/character_assets.rb +3 -3
  21. data/lib/eve_online/esi/character_attributes.rb +6 -6
  22. data/lib/eve_online/esi/character_blueprints.rb +3 -3
  23. data/lib/eve_online/esi/character_bookmark_folders.rb +3 -3
  24. data/lib/eve_online/esi/character_bookmarks.rb +3 -3
  25. data/lib/eve_online/esi/character_calendar.rb +3 -3
  26. data/lib/eve_online/esi/character_clones.rb +9 -9
  27. data/lib/eve_online/esi/character_fatigue.rb +3 -3
  28. data/lib/eve_online/esi/character_implants.rb +3 -3
  29. data/lib/eve_online/esi/character_industry_jobs.rb +5 -5
  30. data/lib/eve_online/esi/character_loyalty_points.rb +3 -3
  31. data/lib/eve_online/esi/character_notifications.rb +3 -3
  32. data/lib/eve_online/esi/character_online.rb +5 -5
  33. data/lib/eve_online/esi/character_orders.rb +3 -3
  34. data/lib/eve_online/esi/character_portrait.rb +4 -5
  35. data/lib/eve_online/esi/character_skill_queue.rb +3 -3
  36. data/lib/eve_online/esi/character_skills.rb +11 -11
  37. data/lib/eve_online/esi/character_standings.rb +3 -3
  38. data/lib/eve_online/esi/character_wallet.rb +3 -3
  39. data/lib/eve_online/esi/character_wallet_journal.rb +3 -3
  40. data/lib/eve_online/esi/corporation.rb +7 -7
  41. data/lib/eve_online/esi/corporation_blueprints.rb +3 -3
  42. data/lib/eve_online/esi/corporation_industry_jobs.rb +5 -5
  43. data/lib/eve_online/esi/corporation_orders.rb +3 -3
  44. data/lib/eve_online/esi/dogma_attribute.rb +7 -7
  45. data/lib/eve_online/esi/dogma_attributes.rb +2 -2
  46. data/lib/eve_online/esi/factions.rb +2 -2
  47. data/lib/eve_online/esi/market_history.rb +4 -4
  48. data/lib/eve_online/esi/models/alliance.rb +18 -18
  49. data/lib/eve_online/esi/models/alliance_icon.rb +5 -5
  50. data/lib/eve_online/esi/models/ancestry.rb +16 -16
  51. data/lib/eve_online/esi/models/asset.rb +22 -17
  52. data/lib/eve_online/esi/models/attributes.rb +20 -20
  53. data/lib/eve_online/esi/models/bloodline.rb +25 -25
  54. data/lib/eve_online/esi/models/blueprint.rb +16 -16
  55. data/lib/eve_online/esi/models/bookmark.rb +26 -26
  56. data/lib/eve_online/esi/models/character.rb +28 -28
  57. data/lib/eve_online/esi/models/{industry_job.rb → character_industry_job.rb} +1 -2
  58. data/lib/eve_online/esi/models/character_order.rb +39 -49
  59. data/lib/eve_online/esi/models/character_portrait.rb +4 -20
  60. data/lib/eve_online/esi/models/corporation.rb +35 -35
  61. data/lib/eve_online/esi/models/corporation_industry_job.rb +132 -0
  62. data/lib/eve_online/esi/models/corporation_order.rb +42 -42
  63. data/lib/eve_online/esi/models/dogma_attribute.rb +21 -21
  64. data/lib/eve_online/esi/models/event.rb +11 -11
  65. data/lib/eve_online/esi/models/faction.rb +20 -20
  66. data/lib/eve_online/esi/models/jump_clone.rb +8 -8
  67. data/lib/eve_online/esi/models/market_history.rb +16 -16
  68. data/lib/eve_online/esi/models/notification.rb +10 -10
  69. data/lib/eve_online/esi/models/online.rb +6 -6
  70. data/lib/eve_online/esi/models/race.rb +11 -11
  71. data/lib/eve_online/esi/models/server_status.rb +7 -7
  72. data/lib/eve_online/esi/models/skill.rb +6 -6
  73. data/lib/eve_online/esi/models/skill_queue_entry.rb +19 -19
  74. data/lib/eve_online/esi/models/type.rb +33 -33
  75. data/lib/eve_online/esi/models/wallet_journal_entry.rb +37 -33
  76. data/lib/eve_online/esi/races.rb +2 -2
  77. data/lib/eve_online/esi/server_status.rb +2 -2
  78. data/lib/eve_online/esi/universe_type.rb +8 -8
  79. data/lib/eve_online/esi/universe_types.rb +2 -2
  80. data/lib/eve_online/version.rb +1 -1
  81. data/mutant.sh +1 -1
  82. metadata +14 -11
  83. data/lib/eve_online/esi/alliances_names.rb +0 -32
@@ -0,0 +1,132 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EveOnline
4
+ module ESI
5
+ module Models
6
+ class CorporationIndustryJob < Base
7
+ def as_json
8
+ {
9
+ activity_id: activity_id,
10
+ blueprint_id: blueprint_id,
11
+ blueprint_location_id: blueprint_location_id,
12
+ blueprint_type_id: blueprint_type_id,
13
+ completed_character_id: completed_character_id,
14
+ completed_date: completed_date,
15
+ cost: cost,
16
+ duration: duration,
17
+ end_date: end_date,
18
+ facility_id: facility_id,
19
+ installer_id: installer_id,
20
+ job_id: job_id,
21
+ licensed_runs: licensed_runs,
22
+ location_id: location_id,
23
+ output_location_id: output_location_id,
24
+ pause_date: pause_date,
25
+ probability: probability,
26
+ product_type_id: product_type_id,
27
+ runs: runs,
28
+ start_date: start_date,
29
+ status: status,
30
+ successful_runs: successful_runs
31
+ }
32
+ end
33
+
34
+ def activity_id
35
+ options['activity_id']
36
+ end
37
+
38
+ def blueprint_id
39
+ options['blueprint_id']
40
+ end
41
+
42
+ def blueprint_location_id
43
+ options['blueprint_location_id']
44
+ end
45
+
46
+ def blueprint_type_id
47
+ options['blueprint_type_id']
48
+ end
49
+
50
+ def completed_character_id
51
+ options['completed_character_id']
52
+ end
53
+
54
+ def completed_date
55
+ completed_date = options['completed_date']
56
+
57
+ parse_datetime_with_timezone(completed_date) if completed_date
58
+ end
59
+
60
+ def cost
61
+ options['cost']
62
+ end
63
+
64
+ def duration
65
+ options['duration']
66
+ end
67
+
68
+ def end_date
69
+ end_date = options['end_date']
70
+
71
+ parse_datetime_with_timezone(end_date) if end_date
72
+ end
73
+
74
+ def facility_id
75
+ options['facility_id']
76
+ end
77
+
78
+ def installer_id
79
+ options['installer_id']
80
+ end
81
+
82
+ def job_id
83
+ options['job_id']
84
+ end
85
+
86
+ def licensed_runs
87
+ options['licensed_runs']
88
+ end
89
+
90
+ def location_id
91
+ options['location_id']
92
+ end
93
+
94
+ def output_location_id
95
+ options['output_location_id']
96
+ end
97
+
98
+ def pause_date
99
+ pause_date = options['pause_date']
100
+
101
+ parse_datetime_with_timezone(pause_date) if pause_date
102
+ end
103
+
104
+ def probability
105
+ options['probability']
106
+ end
107
+
108
+ def product_type_id
109
+ options['product_type_id']
110
+ end
111
+
112
+ def runs
113
+ options['runs']
114
+ end
115
+
116
+ def start_date
117
+ start_date = options['start_date']
118
+
119
+ parse_datetime_with_timezone(start_date) if start_date
120
+ end
121
+
122
+ def status
123
+ options['status']
124
+ end
125
+
126
+ def successful_runs
127
+ options['successful_runs']
128
+ end
129
+ end
130
+ end
131
+ end
132
+ end
@@ -6,85 +6,85 @@ module EveOnline
6
6
  class CorporationOrder < Base
7
7
  def as_json
8
8
  {
9
- order_id: order_id,
10
- type_id: type_id,
11
- region_id: region_id,
12
- location_id: location_id,
13
- range: range,
9
+ duration: duration,
10
+ escrow: escrow,
14
11
  is_buy_order: is_buy_order,
15
- price: price,
16
- volume_total: volume_total,
17
- volume_remain: volume_remain,
18
12
  issued: issued,
19
- state: state,
13
+ issued_by: issued_by,
14
+ location_id: location_id,
20
15
  min_volume: min_volume,
21
- wallet_division: wallet_division,
22
- duration: duration,
23
- escrow: escrow
16
+ order_id: order_id,
17
+ price: price,
18
+ range: range,
19
+ region_id: region_id,
20
+ type_id: type_id,
21
+ volume_remain: volume_remain,
22
+ volume_total: volume_total,
23
+ wallet_division: wallet_division
24
24
  }
25
25
  end
26
26
 
27
- def order_id
28
- options['order_id']
27
+ def duration
28
+ options['duration']
29
29
  end
30
30
 
31
- def type_id
32
- options['type_id']
31
+ def escrow
32
+ options['escrow']
33
33
  end
34
34
 
35
- def region_id
36
- options['region_id']
35
+ def is_buy_order
36
+ options['is_buy_order']
37
+ end
38
+
39
+ def issued
40
+ issued = options['issued']
41
+
42
+ parse_datetime_with_timezone(issued) if issued
43
+ end
44
+
45
+ def issued_by
46
+ options['issued_by']
37
47
  end
38
48
 
39
49
  def location_id
40
50
  options['location_id']
41
51
  end
42
52
 
43
- def range
44
- options['range']
53
+ def min_volume
54
+ options['min_volume']
45
55
  end
46
56
 
47
- def is_buy_order
48
- options['is_buy_order']
57
+ def order_id
58
+ options['order_id']
49
59
  end
50
60
 
51
61
  def price
52
62
  options['price']
53
63
  end
54
64
 
55
- def volume_total
56
- options['volume_total']
65
+ def range
66
+ options['range']
57
67
  end
58
68
 
59
- def volume_remain
60
- options['volume_remain']
69
+ def region_id
70
+ options['region_id']
61
71
  end
62
72
 
63
- def issued
64
- issued = options['issued']
65
-
66
- parse_datetime_with_timezone(issued) if issued
73
+ def type_id
74
+ options['type_id']
67
75
  end
68
76
 
69
- def state
70
- options['state']
77
+ def volume_remain
78
+ options['volume_remain']
71
79
  end
72
80
 
73
- def min_volume
74
- options['min_volume']
81
+ def volume_total
82
+ options['volume_total']
75
83
  end
76
84
 
77
85
  def wallet_division
78
86
  options['wallet_division']
79
87
  end
80
-
81
- def duration
82
- options['duration']
83
- end
84
-
85
- def escrow
86
- options['escrow']
87
- end
88
88
  end
89
89
  end
90
90
  end
@@ -6,57 +6,57 @@ module EveOnline
6
6
  class DogmaAttribute < Base
7
7
  def as_json
8
8
  {
9
- id: id,
10
- name: name,
9
+ attribute_id: attribute_id,
10
+ default_value: default_value,
11
11
  description: description,
12
+ display_name: display_name,
13
+ high_is_good: high_is_good,
12
14
  icon_id: icon_id,
13
- default_value: default_value,
15
+ name: name,
14
16
  published: published,
15
- display_name: display_name,
16
- unit_id: unit_id,
17
17
  stackable: stackable,
18
- high_is_good: high_is_good
18
+ unit_id: unit_id
19
19
  }
20
20
  end
21
21
 
22
- def id
22
+ def attribute_id
23
23
  options['attribute_id']
24
24
  end
25
25
 
26
- def name
27
- options['name']
26
+ def default_value
27
+ options['default_value']
28
28
  end
29
29
 
30
30
  def description
31
31
  options['description']
32
32
  end
33
33
 
34
- def icon_id
35
- options['icon_id']
34
+ def display_name
35
+ options['display_name']
36
36
  end
37
37
 
38
- def default_value
39
- options['default_value']
38
+ def high_is_good
39
+ options['high_is_good']
40
40
  end
41
41
 
42
- def published
43
- options['published']
42
+ def icon_id
43
+ options['icon_id']
44
44
  end
45
45
 
46
- def display_name
47
- options['display_name']
46
+ def name
47
+ options['name']
48
48
  end
49
49
 
50
- def unit_id
51
- options['unit_id']
50
+ def published
51
+ options['published']
52
52
  end
53
53
 
54
54
  def stackable
55
55
  options['stackable']
56
56
  end
57
57
 
58
- def high_is_good
59
- options['high_is_good']
58
+ def unit_id
59
+ options['unit_id']
60
60
  end
61
61
  end
62
62
  end
@@ -6,34 +6,34 @@ module EveOnline
6
6
  class Event < Base
7
7
  def as_json
8
8
  {
9
- event_id: event_id,
10
9
  event_date: event_date,
11
- title: title,
10
+ event_id: event_id,
11
+ event_response: event_response,
12
12
  importance: importance,
13
- event_response: event_response
13
+ title: title
14
14
  }
15
15
  end
16
16
 
17
- def event_id
18
- options['event_id']
19
- end
20
-
21
17
  def event_date
22
18
  event_date = options['event_date']
23
19
 
24
20
  parse_datetime_with_timezone(event_date) if event_date
25
21
  end
26
22
 
27
- def title
28
- options['title']
23
+ def event_id
24
+ options['event_id']
25
+ end
26
+
27
+ def event_response
28
+ options['event_response']
29
29
  end
30
30
 
31
31
  def importance
32
32
  options['importance']
33
33
  end
34
34
 
35
- def event_response
36
- options['event_response']
35
+ def title
36
+ options['title']
37
37
  end
38
38
  end
39
39
  end
@@ -6,47 +6,51 @@ module EveOnline
6
6
  class Faction < Base
7
7
  def as_json
8
8
  {
9
- faction_id: faction_id,
10
- name: name,
11
- description: description,
12
- solar_system_id: solar_system_id,
13
9
  corporation_id: corporation_id,
10
+ description: description,
11
+ faction_id: faction_id,
12
+ is_unique: is_unique,
14
13
  militia_corporation_id: militia_corporation_id,
14
+ name: name,
15
15
  size_factor: size_factor,
16
+ solar_system_id: solar_system_id,
16
17
  station_count: station_count,
17
- station_system_count: station_system_count,
18
- is_unique: is_unique
18
+ station_system_count: station_system_count
19
19
  }
20
20
  end
21
21
 
22
- def faction_id
23
- options['faction_id']
24
- end
25
-
26
- def name
27
- options['name']
22
+ def corporation_id
23
+ options['corporation_id']
28
24
  end
29
25
 
30
26
  def description
31
27
  options['description']
32
28
  end
33
29
 
34
- def solar_system_id
35
- options['solar_system_id']
30
+ def faction_id
31
+ options['faction_id']
36
32
  end
37
33
 
38
- def corporation_id
39
- options['corporation_id']
34
+ def is_unique
35
+ options['is_unique']
40
36
  end
41
37
 
42
38
  def militia_corporation_id
43
39
  options['militia_corporation_id']
44
40
  end
45
41
 
42
+ def name
43
+ options['name']
44
+ end
45
+
46
46
  def size_factor
47
47
  options['size_factor']
48
48
  end
49
49
 
50
+ def solar_system_id
51
+ options['solar_system_id']
52
+ end
53
+
50
54
  def station_count
51
55
  options['station_count']
52
56
  end
@@ -54,10 +58,6 @@ module EveOnline
54
58
  def station_system_count
55
59
  options['station_system_count']
56
60
  end
57
-
58
- def is_unique
59
- options['is_unique']
60
- end
61
61
  end
62
62
  end
63
63
  end