brainzz 0.0.16 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/brainzz/models/video.rb +6 -1
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6418d3735dad22f691496671fd91823b989fd41
|
4
|
+
data.tar.gz: f461383e5187d29bc2863e0e2aa5c963bb5c2bd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87f7e178e3958e7db688a4c1afd297c270b1297e97c44ead20e0611744b19e5c5c5bc668edd9a19f10b51a8aba6fb9d7bbec51b7d29fc52f06c442c1e1379ec6
|
7
|
+
data.tar.gz: 95ea36d3619fe42f04ac599e66f8710558c32d8d1db6e36089bf122bcea64ac5b069b307bc54462381b77c88f1192e42861c3dcb2da86dc89fd467de5597d2b4
|
data/lib/brainzz/models/video.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module Brainzz
|
2
2
|
class Video < BaseModel
|
3
|
-
attr_accessor :id, :title, :published_at, :duration
|
3
|
+
attr_accessor :id, :title, :published_at, :duration, :tags
|
4
4
|
|
5
5
|
def initialize(hash = {})
|
6
6
|
@hash = hash || {}
|
@@ -9,6 +9,7 @@ module Brainzz
|
|
9
9
|
@title = transform(hash_title)
|
10
10
|
@published_at = transform_date(hash_published_at)
|
11
11
|
@duration = transform_duration(hash_duration)
|
12
|
+
@tags = transform(hash_tags)
|
12
13
|
end
|
13
14
|
|
14
15
|
private
|
@@ -36,5 +37,9 @@ module Brainzz
|
|
36
37
|
def hash_published_at
|
37
38
|
snippet['publishedAt']
|
38
39
|
end
|
40
|
+
|
41
|
+
def hash_tags
|
42
|
+
snippet['tags']
|
43
|
+
end
|
39
44
|
end
|
40
45
|
end
|
metadata
CHANGED
@@ -1,16 +1,15 @@
|
|
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.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Travis Herrick
|
8
|
-
-
|
9
|
-
- Haskel Ash
|
8
|
+
- BrettU
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date:
|
12
|
+
date: 2016-01-08 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: faraday
|
@@ -168,7 +167,7 @@ dependencies:
|
|
168
167
|
version: '4'
|
169
168
|
description: Provides an interface to the YouTube API.
|
170
169
|
email:
|
171
|
-
-
|
170
|
+
- brettu@awesomenesstv.com
|
172
171
|
executables: []
|
173
172
|
extensions: []
|
174
173
|
extra_rdoc_files:
|