diablo3_api 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.gitignore ADDED
@@ -0,0 +1,18 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ .rvmrc
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in diablo3_api.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Mikhail Nikalyukin
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # Diablo3Api
2
+
3
+ Ruby Wrapper for Diablo 3 API that let you fetch your d3 profile
4
+
5
+ ## Installation
6
+
7
+ Install gem:
8
+
9
+ $ gem install diablo3_api
10
+
11
+ ## Usage
12
+
13
+ ```ruby
14
+ require 'diablo3_api'
15
+ player = Diablo3Api::Player.new("Dpsk-2824")
16
+ puts player.inspect
17
+ ```
18
+ ``player`` variable now contains information about requested profile.
19
+
20
+ ## Contributing
21
+
22
+ 1. Fork it
23
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
24
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
25
+ 4. Push to the branch (`git push origin my-new-feature`)
26
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,7 @@
1
+ require "bundler/gem_tasks"
2
+ require 'rspec/core/rake_task'
3
+ require 'bundler'
4
+
5
+ RSpec::Core::RakeTask.new(:spec)
6
+
7
+ task :default => :spec
@@ -0,0 +1,28 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'diablo3_api/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "diablo3_api"
8
+ spec.version = Diablo3Api::VERSION
9
+ spec.authors = ["Mikhail Nikalyukin"]
10
+ spec.email = ["idups1k@gmail.com"]
11
+ spec.description = %q{Simple Ruby client for Diablo 3 API}
12
+ spec.summary = %q{Ruby Wrapper for Diablo 3 API that let you fetch your d3 profile}
13
+ spec.homepage = "https://github.com/dpsk/diablo3_api"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.3"
22
+ spec.add_development_dependency "rake"
23
+ spec.add_development_dependency "rspec", "~> 2.6"
24
+ spec.add_development_dependency "httparty"
25
+ spec.add_development_dependency "webmock", "~> 1.8.0"
26
+ spec.add_development_dependency "vcr"
27
+ spec.add_development_dependency "rake"
28
+ end
@@ -0,0 +1,8 @@
1
+ require 'diablo3_api/version'
2
+ require 'diablo3_api/configuration'
3
+ require 'diablo3_api/client'
4
+ require 'diablo3_api/player'
5
+
6
+ module Diablo3Api
7
+ extend Configuration
8
+ end
@@ -0,0 +1,21 @@
1
+ module Diablo3Api
2
+
3
+ class Client
4
+
5
+ attr_accessor *Configuration::VALID_CONFIG_KEYS
6
+
7
+ def initialize(options={})
8
+ # Merge the config values from the module and those passed
9
+ # to the client.
10
+ merged_options = Diablo3Api.options.merge(options)
11
+
12
+ # Copy the merged values to this client and ignore those
13
+ # not part of our configuration
14
+ Configuration::VALID_CONFIG_KEYS.each do |key|
15
+ send("#{key}=", merged_options[key])
16
+ end
17
+ end
18
+
19
+ end
20
+
21
+ end
@@ -0,0 +1,31 @@
1
+ module Diablo3Api
2
+ module Configuration
3
+ VALID_CONFIG_KEYS = [:endpoint, :user_agent, :method, :format].freeze
4
+
5
+ DEFAULT_ENDPOINT = 'http://us.battle.net/api/d3'
6
+ DEFAULT_METHOD = :get
7
+ DEFAULT_USER_AGENT = "diablo3_api Ruby Gem #{Diablo3Api::VERSION}".freeze
8
+ DEFAULT_FORMAT = :json
9
+
10
+ attr_accessor *VALID_CONFIG_KEYS
11
+
12
+ def self.extended(base)
13
+ base.reset
14
+ end
15
+
16
+ def reset
17
+ self.endpoint = DEFAULT_ENDPOINT
18
+ self.method = DEFAULT_METHOD
19
+ self.user_agent = DEFAULT_USER_AGENT
20
+ self.format = DEFAULT_FORMAT
21
+ end
22
+
23
+ def configure
24
+ yield self
25
+ end
26
+
27
+ def options
28
+ Hash[ * VALID_CONFIG_KEYS.map { |key| [key, send(key)] }.flatten ]
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,22 @@
1
+ require 'httparty'
2
+
3
+ module Diablo3Api
4
+
5
+ class Player
6
+
7
+ attr_accessor :username
8
+
9
+ include HTTParty
10
+ base_uri Diablo3Api::Configuration::DEFAULT_ENDPOINT
11
+
12
+ def initialize(username)
13
+ self.username = username
14
+ end
15
+
16
+ def profile
17
+ self.class.get "/profile/#{self.username}/"
18
+ end
19
+
20
+ end
21
+
22
+ end
@@ -0,0 +1,3 @@
1
+ module Diablo3Api
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,62 @@
1
+ require 'spec_helper'
2
+
3
+ describe Diablo3Api::Client do
4
+
5
+ before do
6
+ @keys = Diablo3Api::Configuration::VALID_CONFIG_KEYS
7
+ end
8
+
9
+ describe 'with module configuration' do
10
+ before do
11
+ Diablo3Api.configure do |config|
12
+ @keys.each do |key|
13
+ config.send("#{key}=", key)
14
+ end
15
+ end
16
+ end
17
+
18
+ after do
19
+ Diablo3Api.reset
20
+ end
21
+
22
+ it "should inherit module configuration" do
23
+ api = Diablo3Api::Client.new
24
+ @keys.each do |key|
25
+ api.send(key).should eql key
26
+ end
27
+ end
28
+
29
+ describe 'with class configuration' do
30
+ before do
31
+ @config = {
32
+ :format => 'of',
33
+ :endpoint => 'ep',
34
+ :user_agent => 'ua',
35
+ :method => 'hm',
36
+ }
37
+ end
38
+
39
+ it 'should override module configuration' do
40
+ api = Diablo3Api::Client.new(@config)
41
+ @keys.each do |key|
42
+ api.send(key).should eql @config[key]
43
+ end
44
+ end
45
+
46
+ it 'should override module configuration after' do
47
+ api = Diablo3Api::Client.new
48
+
49
+ @config.each do |key, value|
50
+ api.send("#{key}=", value)
51
+ end
52
+
53
+ @keys.each do |key|
54
+ api.send("#{key}").should eql @config[key]
55
+ end
56
+ end
57
+
58
+ end
59
+
60
+ end
61
+
62
+ end
@@ -0,0 +1,23 @@
1
+ require 'spec_helper'
2
+ describe 'configuration' do
3
+
4
+ Diablo3Api::Configuration::VALID_CONFIG_KEYS.each do |key|
5
+ describe ".#{key}" do
6
+ it 'should return the default value' do
7
+ Diablo3Api.send(key).should eql Diablo3Api::Configuration.const_get("DEFAULT_#{key.upcase}")
8
+ end
9
+ end
10
+ end
11
+
12
+ describe '.configure' do
13
+ after { Diablo3Api.reset }
14
+ Diablo3Api::Configuration::VALID_CONFIG_KEYS.each do |key|
15
+ it "should set the #{key}" do
16
+ Diablo3Api.configure do |config|
17
+ config.send("#{key}=", key)
18
+ Diablo3Api.send(key).should eql key
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe Diablo3Api do
4
+ it 'should have a version' do
5
+ Diablo3Api::VERSION.should_not be_nil
6
+ end
7
+ end
@@ -0,0 +1,38 @@
1
+ require 'spec_helper'
2
+
3
+ describe Diablo3Api::Player do
4
+ describe "default instance attributes" do
5
+
6
+ let(:player) { Diablo3Api::Player.new("Dpsk-2824") }
7
+
8
+ it "must have an id attribute" do
9
+ player.should respond_to :username
10
+ end
11
+
12
+ it "must have the right id" do
13
+ player.username.should eql 'Dpsk-2824'
14
+ end
15
+
16
+ end
17
+
18
+ describe "GET profile" do
19
+
20
+ let(:player) { Diablo3Api::Player.new("Dpsk-2824") }
21
+
22
+ before do
23
+ VCR.insert_cassette 'base', :record => :new_episodes
24
+ end
25
+
26
+ after do
27
+ VCR.eject_cassette
28
+ end
29
+
30
+ it "must have a profile method" do
31
+ player.should respond_to :profile
32
+ end
33
+
34
+ it "must parse the api response from JSON to Hash" do
35
+ player.profile.should be_instance_of Hash
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,678 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://us.battle.net/api/d3/profile/Dpsk-2824/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ Date:
16
+ - Thu, 22 Aug 2013 14:58:59 GMT
17
+ Server:
18
+ - Apache
19
+ X-Frame-Options:
20
+ - SAMEORIGIN
21
+ Content-Language:
22
+ - en-US
23
+ Vary:
24
+ - Accept-Encoding
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Content-Type:
28
+ - application/json;charset=UTF-8
29
+ body:
30
+ encoding: US-ASCII
31
+ string: ! '{
32
+
33
+ "heroes" : [ {
34
+
35
+ "name" : "Vas",
36
+
37
+ "id" : 32351570,
38
+
39
+ "level" : 37,
40
+
41
+ "hardcore" : false,
42
+
43
+ "paragonLevel" : 0,
44
+
45
+ "gender" : 1,
46
+
47
+ "dead" : false,
48
+
49
+ "class" : "wizard",
50
+
51
+ "last-updated" : 1365105795
52
+
53
+ }, {
54
+
55
+ "name" : "Iaw",
56
+
57
+ "id" : 32576165,
58
+
59
+ "level" : 6,
60
+
61
+ "hardcore" : false,
62
+
63
+ "paragonLevel" : 0,
64
+
65
+ "gender" : 1,
66
+
67
+ "dead" : false,
68
+
69
+ "class" : "demon-hunter",
70
+
71
+ "last-updated" : 1365102110
72
+
73
+ } ],
74
+
75
+ "lastHeroPlayed" : 32351570,
76
+
77
+ "lastUpdated" : 1365105795,
78
+
79
+ "artisans" : [ {
80
+
81
+ "slug" : "blacksmith",
82
+
83
+ "level" : 6,
84
+
85
+ "stepCurrent" : 4,
86
+
87
+ "stepMax" : 5
88
+
89
+ }, {
90
+
91
+ "slug" : "jeweler",
92
+
93
+ "level" : 3,
94
+
95
+ "stepCurrent" : 0,
96
+
97
+ "stepMax" : 1
98
+
99
+ } ],
100
+
101
+ "hardcoreArtisans" : [ {
102
+
103
+ "slug" : "blacksmith",
104
+
105
+ "level" : 0,
106
+
107
+ "stepCurrent" : -1,
108
+
109
+ "stepMax" : 5
110
+
111
+ }, {
112
+
113
+ "slug" : "jeweler",
114
+
115
+ "level" : 0,
116
+
117
+ "stepCurrent" : 0,
118
+
119
+ "stepMax" : 1
120
+
121
+ } ],
122
+
123
+ "kills" : {
124
+
125
+ "monsters" : 16695,
126
+
127
+ "elites" : 629,
128
+
129
+ "hardcoreMonsters" : 0
130
+
131
+ },
132
+
133
+ "timePlayed" : {
134
+
135
+ "barbarian" : 0.0,
136
+
137
+ "demon-hunter" : 0.029,
138
+
139
+ "monk" : 0.0,
140
+
141
+ "witch-doctor" : 0.0,
142
+
143
+ "wizard" : 1.0
144
+
145
+ },
146
+
147
+ "fallenHeroes" : [ ],
148
+
149
+ "battleTag" : "dpsk#2824",
150
+
151
+ "progression" : {
152
+
153
+ "normal" : {
154
+
155
+ "act1" : {
156
+
157
+ "completed" : true,
158
+
159
+ "completedQuests" : [ {
160
+
161
+ "slug" : "the-fallen-star",
162
+
163
+ "name" : "The Fallen Star"
164
+
165
+ }, {
166
+
167
+ "slug" : "the-legacy-of-cain",
168
+
169
+ "name" : "The Legacy of Cain"
170
+
171
+ }, {
172
+
173
+ "slug" : "a-shattered-crown",
174
+
175
+ "name" : "A Shattered Crown"
176
+
177
+ }, {
178
+
179
+ "slug" : "reign-of-the-black-king",
180
+
181
+ "name" : "Reign of the Black King"
182
+
183
+ }, {
184
+
185
+ "slug" : "sword-of-the-stranger",
186
+
187
+ "name" : "Sword of the Stranger"
188
+
189
+ }, {
190
+
191
+ "slug" : "the-broken-blade",
192
+
193
+ "name" : "The Broken Blade"
194
+
195
+ }, {
196
+
197
+ "slug" : "the-doom-in-wortham",
198
+
199
+ "name" : "The Doom in Wortham"
200
+
201
+ }, {
202
+
203
+ "slug" : "trailing-the-coven",
204
+
205
+ "name" : "Trailing the Coven"
206
+
207
+ }, {
208
+
209
+ "slug" : "the-imprisoned-angel",
210
+
211
+ "name" : "The Imprisoned Angel"
212
+
213
+ }, {
214
+
215
+ "slug" : "return-to-new-tristram",
216
+
217
+ "name" : "Return to New Tristram"
218
+
219
+ } ]
220
+
221
+ },
222
+
223
+ "act2" : {
224
+
225
+ "completed" : true,
226
+
227
+ "completedQuests" : [ {
228
+
229
+ "slug" : "shadows-in-the-desert",
230
+
231
+ "name" : "Shadows in the Desert"
232
+
233
+ }, {
234
+
235
+ "slug" : "the-road-to-alcarnus",
236
+
237
+ "name" : "The Road to Alcarnus"
238
+
239
+ }, {
240
+
241
+ "slug" : "city-of-blood",
242
+
243
+ "name" : "City of Blood"
244
+
245
+ }, {
246
+
247
+ "slug" : "a-royal-audience",
248
+
249
+ "name" : "A Royal Audience"
250
+
251
+ }, {
252
+
253
+ "slug" : "unexpected-allies",
254
+
255
+ "name" : "Unexpected Allies"
256
+
257
+ }, {
258
+
259
+ "slug" : "betrayer-of-the-horadrim",
260
+
261
+ "name" : "Betrayer of the Horadrim"
262
+
263
+ }, {
264
+
265
+ "slug" : "blood-and-sand",
266
+
267
+ "name" : "Blood and Sand"
268
+
269
+ }, {
270
+
271
+ "slug" : "the-black-soulstone",
272
+
273
+ "name" : "The Black Soulstone"
274
+
275
+ }, {
276
+
277
+ "slug" : "the-scouring-of-caldeum",
278
+
279
+ "name" : "The Scouring of Caldeum"
280
+
281
+ }, {
282
+
283
+ "slug" : "lord-of-lies",
284
+
285
+ "name" : "Lord of Lies"
286
+
287
+ } ]
288
+
289
+ },
290
+
291
+ "act3" : {
292
+
293
+ "completed" : true,
294
+
295
+ "completedQuests" : [ {
296
+
297
+ "slug" : "the-siege-of-bastions-keep",
298
+
299
+ "name" : "The Siege of Bastion''s Keep"
300
+
301
+ }, {
302
+
303
+ "slug" : "turning-the-tide",
304
+
305
+ "name" : "Turning the Tide"
306
+
307
+ }, {
308
+
309
+ "slug" : "the-breached-keep",
310
+
311
+ "name" : "The Breached Keep"
312
+
313
+ }, {
314
+
315
+ "slug" : "tremors-in-the-stone",
316
+
317
+ "name" : "Tremors in the Stone"
318
+
319
+ }, {
320
+
321
+ "slug" : "machines-of-war",
322
+
323
+ "name" : "Machines of War"
324
+
325
+ }, {
326
+
327
+ "slug" : "siegebreaker",
328
+
329
+ "name" : "Siegebreaker"
330
+
331
+ }, {
332
+
333
+ "slug" : "heart-of-sin",
334
+
335
+ "name" : "Heart of Sin"
336
+
337
+ } ]
338
+
339
+ },
340
+
341
+ "act4" : {
342
+
343
+ "completed" : true,
344
+
345
+ "completedQuests" : [ {
346
+
347
+ "slug" : "fall-of-the-high-heavens",
348
+
349
+ "name" : "Fall of the High Heavens"
350
+
351
+ }, {
352
+
353
+ "slug" : "the-light-of-hope",
354
+
355
+ "name" : "The Light of Hope"
356
+
357
+ }, {
358
+
359
+ "slug" : "beneath-the-spire",
360
+
361
+ "name" : "Beneath the Spire"
362
+
363
+ }, {
364
+
365
+ "slug" : "prime-evil",
366
+
367
+ "name" : "Prime Evil"
368
+
369
+ } ]
370
+
371
+ }
372
+
373
+ },
374
+
375
+ "nightmare" : {
376
+
377
+ "act1" : {
378
+
379
+ "completed" : false,
380
+
381
+ "completedQuests" : [ {
382
+
383
+ "slug" : "the-fallen-star",
384
+
385
+ "name" : "The Fallen Star"
386
+
387
+ }, {
388
+
389
+ "slug" : "the-legacy-of-cain",
390
+
391
+ "name" : "The Legacy of Cain"
392
+
393
+ }, {
394
+
395
+ "slug" : "a-shattered-crown",
396
+
397
+ "name" : "A Shattered Crown"
398
+
399
+ }, {
400
+
401
+ "slug" : "reign-of-the-black-king",
402
+
403
+ "name" : "Reign of the Black King"
404
+
405
+ }, {
406
+
407
+ "slug" : "sword-of-the-stranger",
408
+
409
+ "name" : "Sword of the Stranger"
410
+
411
+ }, {
412
+
413
+ "slug" : "the-broken-blade",
414
+
415
+ "name" : "The Broken Blade"
416
+
417
+ }, {
418
+
419
+ "slug" : "the-doom-in-wortham",
420
+
421
+ "name" : "The Doom in Wortham"
422
+
423
+ } ]
424
+
425
+ },
426
+
427
+ "act2" : {
428
+
429
+ "completed" : false,
430
+
431
+ "completedQuests" : [ ]
432
+
433
+ },
434
+
435
+ "act3" : {
436
+
437
+ "completed" : false,
438
+
439
+ "completedQuests" : [ ]
440
+
441
+ },
442
+
443
+ "act4" : {
444
+
445
+ "completed" : false,
446
+
447
+ "completedQuests" : [ ]
448
+
449
+ }
450
+
451
+ },
452
+
453
+ "hell" : {
454
+
455
+ "act1" : {
456
+
457
+ "completed" : false,
458
+
459
+ "completedQuests" : [ ]
460
+
461
+ },
462
+
463
+ "act2" : {
464
+
465
+ "completed" : false,
466
+
467
+ "completedQuests" : [ ]
468
+
469
+ },
470
+
471
+ "act3" : {
472
+
473
+ "completed" : false,
474
+
475
+ "completedQuests" : [ ]
476
+
477
+ },
478
+
479
+ "act4" : {
480
+
481
+ "completed" : false,
482
+
483
+ "completedQuests" : [ ]
484
+
485
+ }
486
+
487
+ },
488
+
489
+ "inferno" : {
490
+
491
+ "act1" : {
492
+
493
+ "completed" : false,
494
+
495
+ "completedQuests" : [ ]
496
+
497
+ },
498
+
499
+ "act2" : {
500
+
501
+ "completed" : false,
502
+
503
+ "completedQuests" : [ ]
504
+
505
+ },
506
+
507
+ "act3" : {
508
+
509
+ "completed" : false,
510
+
511
+ "completedQuests" : [ ]
512
+
513
+ },
514
+
515
+ "act4" : {
516
+
517
+ "completed" : false,
518
+
519
+ "completedQuests" : [ ]
520
+
521
+ }
522
+
523
+ }
524
+
525
+ },
526
+
527
+ "hardcoreProgression" : {
528
+
529
+ "normal" : {
530
+
531
+ "act1" : {
532
+
533
+ "completed" : false,
534
+
535
+ "completedQuests" : [ ]
536
+
537
+ },
538
+
539
+ "act2" : {
540
+
541
+ "completed" : false,
542
+
543
+ "completedQuests" : [ ]
544
+
545
+ },
546
+
547
+ "act3" : {
548
+
549
+ "completed" : false,
550
+
551
+ "completedQuests" : [ ]
552
+
553
+ },
554
+
555
+ "act4" : {
556
+
557
+ "completed" : false,
558
+
559
+ "completedQuests" : [ ]
560
+
561
+ }
562
+
563
+ },
564
+
565
+ "nightmare" : {
566
+
567
+ "act1" : {
568
+
569
+ "completed" : false,
570
+
571
+ "completedQuests" : [ ]
572
+
573
+ },
574
+
575
+ "act2" : {
576
+
577
+ "completed" : false,
578
+
579
+ "completedQuests" : [ ]
580
+
581
+ },
582
+
583
+ "act3" : {
584
+
585
+ "completed" : false,
586
+
587
+ "completedQuests" : [ ]
588
+
589
+ },
590
+
591
+ "act4" : {
592
+
593
+ "completed" : false,
594
+
595
+ "completedQuests" : [ ]
596
+
597
+ }
598
+
599
+ },
600
+
601
+ "hell" : {
602
+
603
+ "act1" : {
604
+
605
+ "completed" : false,
606
+
607
+ "completedQuests" : [ ]
608
+
609
+ },
610
+
611
+ "act2" : {
612
+
613
+ "completed" : false,
614
+
615
+ "completedQuests" : [ ]
616
+
617
+ },
618
+
619
+ "act3" : {
620
+
621
+ "completed" : false,
622
+
623
+ "completedQuests" : [ ]
624
+
625
+ },
626
+
627
+ "act4" : {
628
+
629
+ "completed" : false,
630
+
631
+ "completedQuests" : [ ]
632
+
633
+ }
634
+
635
+ },
636
+
637
+ "inferno" : {
638
+
639
+ "act1" : {
640
+
641
+ "completed" : false,
642
+
643
+ "completedQuests" : [ ]
644
+
645
+ },
646
+
647
+ "act2" : {
648
+
649
+ "completed" : false,
650
+
651
+ "completedQuests" : [ ]
652
+
653
+ },
654
+
655
+ "act3" : {
656
+
657
+ "completed" : false,
658
+
659
+ "completedQuests" : [ ]
660
+
661
+ },
662
+
663
+ "act4" : {
664
+
665
+ "completed" : false,
666
+
667
+ "completedQuests" : [ ]
668
+
669
+ }
670
+
671
+ }
672
+
673
+ }
674
+
675
+ }'
676
+ http_version:
677
+ recorded_at: Thu, 22 Aug 2013 14:58:59 GMT
678
+ recorded_with: VCR 2.5.0