tomato_power 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -33,7 +33,6 @@ module TomatoPower
33
33
  def fetch endpoint, api_key, options
34
34
  APIService.fetch endpoint, api_key, options
35
35
  end
36
-
37
36
  # Determines if options are valid for given method.
38
37
  #
39
38
  # @param method [Symbol] API method
@@ -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
@@ -1,3 +1,3 @@
1
1
  module TomatoPower
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -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.0
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-26 00:00:00.000000000 Z
12
+ date: 2013-02-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport