conversocial 0.0.5 → 0.0.6
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/README.md +6 -2
- data/lib/conversocial/resources/models/content.rb +4 -4
- data/lib/conversocial/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cd5391669fb7b337fafadf1f2345946e680305ee
|
|
4
|
+
data.tar.gz: 0f1aff374699fa9d68dec55eda315e0cadc88636
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 780aa670a939f2401b4aec2da2a78d06b07b6e8f555a162a60f4095e2b0e55d16a58670e9ce91d5335d9e4bc4f25bb5bc97ae256ed18bc17e463b4bec340f8ff
|
|
7
|
+
data.tar.gz: 51afe9ebbb71953bae4b9806707d50f47450045b70ce3304efd52222b418fe58f5e27bbee7cc9d22fc58981301750c21d0e2b672b1b88e3e92aa283a02a2b9e4
|
data/README.md
CHANGED
|
@@ -115,9 +115,13 @@ Using the pagination api is the best way to enumerate through an entire dataset
|
|
|
115
115
|
|
|
116
116
|
To get all the conversations for today
|
|
117
117
|
|
|
118
|
-
client.conversations.greater_than_or_equal_to(:oldest_sort_date, Date.today ).limit(50).each_page do |
|
|
118
|
+
client.conversations.greater_than_or_equal_to(:oldest_sort_date, Date.today ).limit(50).each_page do |conversations|
|
|
119
119
|
conversations.each do |conversation|
|
|
120
|
-
puts "
|
|
120
|
+
puts "conversation #{conversation.id}"
|
|
121
|
+
conversation.contents.each do |content|
|
|
122
|
+
puts "#{content.author.real_name}: #{content.text}"
|
|
123
|
+
end
|
|
124
|
+
puts "\n"
|
|
121
125
|
end
|
|
122
126
|
end
|
|
123
127
|
|
|
@@ -3,13 +3,13 @@ module Conversocial
|
|
|
3
3
|
module Models
|
|
4
4
|
class Content < Base
|
|
5
5
|
def self.fields
|
|
6
|
-
%w{attachments parent author is_priority text tags sentiment channels platform link created_date type id is_private}
|
|
6
|
+
%w{attachments parent author is_priority text tags sentiment channels platform platform_id link created_date type id is_private}
|
|
7
7
|
end
|
|
8
8
|
attributize_tags
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
def refresh
|
|
11
|
+
self
|
|
12
|
+
end
|
|
13
13
|
end
|
|
14
14
|
end
|
|
15
15
|
end
|
data/lib/conversocial/version.rb
CHANGED