google-book 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,13 +10,6 @@ module Google
10
10
  end
11
11
 
12
12
  def each(&block)
13
- members =
14
- if total_results == 0
15
- []
16
- else
17
- [@feed['entry']].flatten
18
- end
19
-
20
13
  members.each do |member|
21
14
  block.call(Entry.new(member))
22
15
  end
@@ -25,6 +18,16 @@ module Google
25
18
  def total_results
26
19
  @feed['openSearch:totalResults'].to_i
27
20
  end
21
+
22
+ private
23
+
24
+ def members
25
+ if total_results == 0
26
+ []
27
+ else
28
+ [@feed['entry']].flatten
29
+ end
30
+ end
28
31
  end
29
32
  end
30
33
  end
@@ -1,5 +1,5 @@
1
1
  module Google
2
2
  module Book
3
- VERSION = '0.3.1'
3
+ VERSION = '0.3.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: google-book
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.3.1
5
+ version: 0.3.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Paper Cavalier