hutzbot 0.1.5 → 0.1.6

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
  SHA256:
3
- metadata.gz: 65fde17e98859ccc79afc2bf411b6d0b4af0c9a826bc28f92a53a07184f91366
4
- data.tar.gz: ac3a51f1b763793437325e220973de23d91dfe8e0740a827ec465a737d4606c6
3
+ metadata.gz: 280d4f588344bff8c40a21fb585bdc32464469933e695c463b6a6ba63205dc36
4
+ data.tar.gz: 59afc1cce6d8221ced5494ffddcda5f534afffa58daf2ee9d9cb12211cb343e5
5
5
  SHA512:
6
- metadata.gz: 9f5a99e9098eba3fea04212226d0f30e1476f906b455350d7aa34c8378aed126fb2f05e44ddb063d05d138d5944784ca1e686910572d043147146c1e7fd2c27a
7
- data.tar.gz: f548121ea83c29cf7999f846aee1c397b536cdebb6d28395e0d6283ec7dad043fc6cc5a9d0299644c73915f5a0f8eef6c69bb818210205253d0ac5092e35cfa1
6
+ metadata.gz: 5dab1bbb52466a0a6f78f6234255f82c8b0c76456e1f7a2ef78dd15c972704b875ff75cff5b7dd7ace8c06c1a1d09bc7800a4c49753d0a73732934610b8e7f71
7
+ data.tar.gz: c7899dae92fc1f4259bbf5e363b9c386876f41f51de7a8d0ea2d9521b2659c7f3ab5e981412feb8e7063abbc3fd8f861246e66fa7b93d0fb2a696572f0ea52a4
@@ -31,8 +31,10 @@ module Hutzbot
31
31
 
32
32
  class Conversation
33
33
  attr_accessor :id
34
+ attr_accessor :created_at
34
35
  attr_accessor :current_state
35
36
  attr_accessor :taxonomy
37
+ attr_accessor :daily_counter
36
38
  attr_accessor :tagged_document
37
39
  attr_accessor :user
38
40
  attr_accessor :application
@@ -40,7 +42,8 @@ module Hutzbot
40
42
  attr_accessor :valid_responses
41
43
 
42
44
  def initialize attrs
43
- @id, @current_state, @taxonomy, @tagged_document, @user, @application = *attrs.values_at('id', 'current_state', 'taxonomy', 'tagged_document', 'user', 'application')
45
+ @id, @current_state, @taxonomy, @tagged_document, @user, @application, @daily_counter = *attrs.values_at('id', 'current_state', 'taxonomy', 'tagged_document', 'user', 'application', 'daily_counter')
46
+ @created_at = Date.parse(attrs['created_at'])
44
47
  @responses = attrs['responses'].map{ |r| Response.new(r) } if attrs['responses']
45
48
  @valid_responses = attrs['valid_responses'].map{ |vr| ValidResponse.new(vr) } if attrs['valid_responses']
46
49
  end
@@ -1,3 +1,3 @@
1
1
  module Hutzbot
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hutzbot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Wise
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-05 00:00:00.000000000 Z
11
+ date: 2019-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler