brainzz 0.0.20 → 0.0.21
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/lib/brainzz/models/video.rb +24 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c9bb116075d2c8e86d3bde1d822e0510149a98b
|
4
|
+
data.tar.gz: 6e8e64113f6aacd0c3712739f58fe0744229ff66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57af404b4c61af596acb97c0adc656209da85922d9aea79adb6fa057c30ee3d10986bf8055dbbbb0491d186f024f75a145cedb27a5093c9c5b0bfd8959661a77
|
7
|
+
data.tar.gz: aae85705a5d17ec09314548b8b7cc63a08cabee90f4ec8b923e69f9ea2c2e294fe19210a748028ed49fc5013c7806124dc3b4029351d07f3135d099c146bbd31
|
data/lib/brainzz/models/video.rb
CHANGED
@@ -7,6 +7,10 @@ module Brainzz
|
|
7
7
|
attr_accessor :duration
|
8
8
|
attr_accessor :tags
|
9
9
|
attr_accessor :view_count
|
10
|
+
attr_accessor :like_count
|
11
|
+
attr_accessor :dislike_count
|
12
|
+
attr_accessor :favorite_count
|
13
|
+
attr_accessor :comment_count
|
10
14
|
attr_accessor :channel_id
|
11
15
|
attr_accessor :channel_title
|
12
16
|
attr_accessor :privacy_status
|
@@ -21,6 +25,10 @@ module Brainzz
|
|
21
25
|
@duration = transform_duration(hash_duration)
|
22
26
|
@tags = transform(hash_tags)
|
23
27
|
@view_count = transform(hash_view_count)
|
28
|
+
@like_count = transform(hash_like_count)
|
29
|
+
@dislike_count = transform(hash_dislike_count)
|
30
|
+
@favorite_count = transform(hash_favorite_count)
|
31
|
+
@comment_count = transform(hash_comment_count)
|
24
32
|
@channel_id = transform(hash_channel_id)
|
25
33
|
@channel_title = transform(hash_channel_title)
|
26
34
|
@privacy_status = transform(hash_privacy_status)
|
@@ -56,6 +64,22 @@ module Brainzz
|
|
56
64
|
statistics['viewCount']
|
57
65
|
end
|
58
66
|
|
67
|
+
def hash_like_count
|
68
|
+
statistics['likeCount']
|
69
|
+
end
|
70
|
+
|
71
|
+
def hash_dislike_count
|
72
|
+
statistics['dislikeCount']
|
73
|
+
end
|
74
|
+
|
75
|
+
def hash_favorite_count
|
76
|
+
statistics['favoriteCount']
|
77
|
+
end
|
78
|
+
|
79
|
+
def hash_comment_count
|
80
|
+
statistics['commentCount']
|
81
|
+
end
|
82
|
+
|
59
83
|
def hash_id
|
60
84
|
@hash['videoId'] || @hash['id']
|
61
85
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brainzz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Travis Herrick
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-04-
|
12
|
+
date: 2016-04-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|
@@ -329,7 +329,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
329
329
|
version: '0'
|
330
330
|
requirements: []
|
331
331
|
rubyforge_project:
|
332
|
-
rubygems_version: 2.4.
|
332
|
+
rubygems_version: 2.4.5
|
333
333
|
signing_key:
|
334
334
|
specification_version: 4
|
335
335
|
summary: YouTube API interface
|