ibm-watson-ruby 0.2.0 → 0.2.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.
- checksums.yaml +4 -4
- data/Gemfile +0 -1
- data/lib/ibm_watson/conversation/result.rb +9 -9
- data/lib/ibm_watson/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b0c86b0b88c44a474376bd43b2e110b7754eaf6
|
4
|
+
data.tar.gz: 3893a7d6cde18e060f477c3ca86e0c4fb05934d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10a8affa0eebe3ee715faea64bb6971ffe5510792c52dc778f28bebcf9dde7276c067d634275cb1d82462d5ad29903171f5abb247761089cc8e8f3609489dfd9
|
7
|
+
data.tar.gz: fa69dfa4a1759f60ff34ca9749aabc11664f273b0650b9e48bd658031289290a0e6a4d01abd848a88a860d9a4baf9cd675984dac9c3eba4fcd816b7bbd12cbd5
|
data/Gemfile
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
module IBMWatson
|
2
2
|
module Conversation
|
3
3
|
class Result < IBMWatson::BaseModel
|
4
|
-
attribute :intents,
|
5
|
-
type: [::IBMWatson::Conversation::IntentResult],
|
6
|
-
typecaster: lambda { |values|
|
7
|
-
values.map do |value|
|
8
|
-
::IBMWatson::Conversation::IntentResult.new(value)
|
9
|
-
end
|
10
|
-
}
|
11
4
|
attribute :entities
|
12
5
|
attribute :input
|
13
|
-
attribute :output
|
14
|
-
attribute :context
|
6
|
+
attribute :output
|
7
|
+
attribute :context
|
15
8
|
attribute :alternate_intents
|
16
9
|
|
10
|
+
def intents=(values)
|
11
|
+
@intents = values.map do |value|
|
12
|
+
::IBMWatson::Conversation::IntentResult.new(value)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
attr_reader :intents
|
16
|
+
|
17
17
|
def as_json(*)
|
18
18
|
super.merge({
|
19
19
|
"intents" => intents.as_json
|
data/lib/ibm_watson/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ibm-watson-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bram Whillock
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|