wes-data-api 5.8.0 → 5.8.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a9d7e3feb5d924248ed2e05b45c160112dc074c1
4
- data.tar.gz: 3d588f128cdeae7e536445a166c32c2b41de837c
3
+ metadata.gz: 722668ce5a55fbfe928eb3d5e02e6bae392563ac
4
+ data.tar.gz: a66d15fd5a00300a2066a04f02fb4cd5a3a495d6
5
5
  SHA512:
6
- metadata.gz: 8d95688411e28e28883efdd4eebbac38cf38865489a3549876037ecca17219ed4baad45e323088f8808080bf8b82dab79c814f89d18d98ff53d99c799f1a023d
7
- data.tar.gz: 130478f25f1cc6ace114a94efce5a8115c8e8dfb2e186f87de2880cda27d170c5681142da68ff8f05b5c5a9a4c3f5ee3beb50158c19157ef0075833f2385291d
6
+ metadata.gz: ed7715f6040de906ddf5d8eae019698f0c692cddb04577ef0f1410cb1d54f72fb01704081d4fb3589f4223371cb430d1be4f7a6aefbe22f4897be07d0f4c08b9
7
+ data.tar.gz: 40537b35dd9e4824250e7d2f71d2347dc863bcd317ba30b30e1f46720abe397e4cc63d76df8593fb5485b921afcc36ef43c59c7ab96d38c4d1d6f035449df2e9
@@ -5,6 +5,22 @@ module Wes
5
5
  module API
6
6
  module Model
7
7
  class ChallengeAnswer < Base
8
+ def id
9
+ ids_set? ? id_hash : nil
10
+ end
11
+
12
+ private
13
+
14
+ def ids_set?
15
+ @attributes.challenge_id != nil && @attributes.question_id != nil
16
+ end
17
+
18
+ def id_hash
19
+ {
20
+ "challenge_id" => @attributes.challenge_id,
21
+ "question_id" => @attributes.question_id
22
+ }
23
+ end
8
24
  end
9
25
  end
10
26
  end
data/lib/wes/data/api.rb CHANGED
@@ -5,7 +5,7 @@ require "wes/data/api/configuration"
5
5
  module Wes
6
6
  module Data
7
7
  module API
8
- VERSION = "5.8.0".freeze
8
+ VERSION = "5.8.1".freeze
9
9
  end
10
10
  end
11
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wes-data-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.8.0
4
+ version: 5.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''