think_feel_do_engine 3.22.6 → 3.22.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c76fcf5d08fa7146bb8abb321f1109ea70102751
|
4
|
+
data.tar.gz: c632c6bdc6adc6bd566492341f7c165b7f991d4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1fda4b8ab9f2b39497a29042c87d4ee5d053db136641b94cee1768cf026ee5a13dc37b5e2d7a0a3e1577c01d9421aa6607201fca82fa1149349fb71ad0104eea
|
7
|
+
data.tar.gz: 3789fdce7d10d2407946fd2b8e4442af22370f921ba59785439be0b9c3e5b5c9234cc19afd985981cf0621d195b8d559722e34522f75e5556a8f0792323a9a87
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
module ThinkFeelDoEngine
|
3
|
+
module Reports
|
4
|
+
# Collect metadata for all Participant Mood Ratings.
|
5
|
+
class MoodRating
|
6
|
+
def self.columns
|
7
|
+
%w( participant_id rating created_at )
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.all
|
11
|
+
Participant.not_moderator.select(:id, :study_id).map do |participant|
|
12
|
+
participant.moods.map do |mood|
|
13
|
+
{
|
14
|
+
participant_id: participant.study_id,
|
15
|
+
rating: mood.rating,
|
16
|
+
created_at: mood.created_at.iso8601
|
17
|
+
}
|
18
|
+
end
|
19
|
+
end.flatten
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: think_feel_do_engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.22.
|
4
|
+
version: 3.22.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Carty-Fickes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -556,6 +556,7 @@ files:
|
|
556
556
|
- app/models/think_feel_do_engine/reports/messaging.rb
|
557
557
|
- app/models/think_feel_do_engine/reports/module_page_view.rb
|
558
558
|
- app/models/think_feel_do_engine/reports/module_session.rb
|
559
|
+
- app/models/think_feel_do_engine/reports/mood_rating.rb
|
559
560
|
- app/models/think_feel_do_engine/reports/patient_activity.rb
|
560
561
|
- app/models/think_feel_do_engine/reports/patient_thought.rb
|
561
562
|
- app/models/think_feel_do_engine/reports/phq_assessment.rb
|
@@ -1009,7 +1010,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1009
1010
|
version: '0'
|
1010
1011
|
requirements: []
|
1011
1012
|
rubyforge_project:
|
1012
|
-
rubygems_version: 2.
|
1013
|
+
rubygems_version: 2.5.1
|
1013
1014
|
signing_key:
|
1014
1015
|
specification_version: 4
|
1015
1016
|
summary: Summary of ThinkFeelDoEngine.
|