brainzz 0.0.16 → 0.0.17

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/brainzz/models/video.rb +6 -1
  3. metadata +4 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 436f5cc534dd86373de4739578b7f8558dda4557
4
- data.tar.gz: 0ef21c5db8d8583d7310c1ef555dd23f45c6ea4f
3
+ metadata.gz: b6418d3735dad22f691496671fd91823b989fd41
4
+ data.tar.gz: f461383e5187d29bc2863e0e2aa5c963bb5c2bd0
5
5
  SHA512:
6
- metadata.gz: 71fdb722ac1e459218af3a18cc085279698ab3b049df951aee6ae7a1af56fb9d97bc25245d1ed0c349fbebbdd8a740e1122f4d8269668c8b4cb057bc356fde66
7
- data.tar.gz: 8eff3e9d78f0204c646108d48d980f4358882d9286897ba8dd174c30557702e8fe52ddf1af7d4fcdc154ba49d1100dd721debe393bfbee87a7e5d4aa260d372f
6
+ metadata.gz: 87f7e178e3958e7db688a4c1afd297c270b1297e97c44ead20e0611744b19e5c5c5bc668edd9a19f10b51a8aba6fb9d7bbec51b7d29fc52f06c442c1e1379ec6
7
+ data.tar.gz: 95ea36d3619fe42f04ac599e66f8710558c32d8d1db6e36089bf122bcea64ac5b069b307bc54462381b77c88f1192e42861c3dcb2da86dc89fd467de5597d2b4
@@ -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.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Herrick
8
- - Joshua Book
9
- - Haskel Ash
8
+ - BrettU
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2015-11-05 00:00:00.000000000 Z
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
- - travish@awesomenesstv.com
170
+ - brettu@awesomenesstv.com
172
171
  executables: []
173
172
  extensions: []
174
173
  extra_rdoc_files: