miiCardConsumers 2.1.0 → 2.2.0

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.
Files changed (2) hide show
  1. data/lib/miiCardConsumers.rb +8 -2
  2. metadata +2 -2
@@ -306,7 +306,7 @@ class MiiUserProfile
306
306
  hash['IdentityAssured'],
307
307
  hash['HasPublicProfile'],
308
308
  public_profile_parsed,
309
- Util::parse_dot_net_json_datetime(hash['DateOfBirth'])
309
+ (Util::parse_dot_net_json_datetime(hash['DateOfBirth']) rescue nil)
310
310
  )
311
311
  end
312
312
  end
@@ -434,6 +434,12 @@ class MiiCardOAuthClaimsService < MiiCardOAuthServiceBase
434
434
 
435
435
  return make_request(MiiCardServiceUrls.get_method_url('GetIdentitySnapshot'), params, IdentitySnapshot.method(:from_hash), true)
436
436
  end
437
+
438
+ def get_identity_snapshot_pdf(snapshot_id)
439
+ params = Hash["snapshotId", snapshot_id]
440
+
441
+ return make_request(MiiCardServiceUrls.get_method_url('GetIdentitySnapshotPdf'), params, nil, false)
442
+ end
437
443
 
438
444
  private
439
445
  def make_request(url, post_data, payload_processor, wrapped_response, array_type_payload = false)
@@ -458,4 +464,4 @@ class Util
458
464
  seconds_since_epoch = (datestring.scan(/[0-9]+/)[0].to_i) / 1000.0
459
465
  return DateTime.strptime(seconds_since_epoch.to_s, '%s')
460
466
  end
461
- end
467
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miiCardConsumers
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-05 00:00:00.000000000 Z
12
+ date: 2013-07-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: oauth