tomato_power 0.1.0 → 0.1.1
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.
data/lib/tomato_power/api/api.rb
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
module TomatoPower
|
2
2
|
# Clip of a movie
|
3
3
|
class Clip
|
4
|
-
attr_reader :title, :duration, :thumbnail
|
4
|
+
attr_reader :title, :duration, :thumbnail, :link
|
5
5
|
def initialize clip={}
|
6
6
|
@title = clip["title"]
|
7
7
|
@duration = clip["duration"]
|
8
8
|
@thumbnail = clip["thumbnail"]
|
9
|
+
@link = clip["links"]["alternate"]
|
9
10
|
end
|
10
11
|
end
|
11
12
|
end
|
data/lib/tomato_power/version.rb
CHANGED
@@ -5,10 +5,12 @@ module TomatoPower
|
|
5
5
|
before do
|
6
6
|
@clip = Clip.new TestHelpers::sample :clip
|
7
7
|
end
|
8
|
+
subject { @clip }
|
8
9
|
describe "attributes" do
|
9
10
|
it { should respond_to ( :title )}
|
10
11
|
it { should respond_to ( :duration )}
|
11
12
|
it { should respond_to ( :thumbnail )}
|
13
|
+
it { should respond_to ( :link )}
|
12
14
|
end
|
13
15
|
end
|
14
16
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tomato_power
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-02-
|
12
|
+
date: 2013-02-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|