Class: Google::Book::Cover

Inherits:
Object
  • Object
show all
Defined in:
lib/google/book/cover.rb

Instance Method Summary collapse

Constructor Details

#initialize(url) ⇒ Cover

Returns a new instance of Cover.



4
5
6
# File 'lib/google/book/cover.rb', line 4

def initialize(url)
  @url = url
end

Instance Method Details

#extra_largeObject



24
25
26
# File 'lib/google/book/cover.rb', line 24

def extra_large
  urlify(6)
end

#largeObject



20
21
22
# File 'lib/google/book/cover.rb', line 20

def large
  urlify(3)
end

#mediumObject



16
17
18
# File 'lib/google/book/cover.rb', line 16

def medium
  urlify(2)
end

#smallObject



12
13
14
# File 'lib/google/book/cover.rb', line 12

def small
  urlify(1)
end

#thumbnailObject



8
9
10
# File 'lib/google/book/cover.rb', line 8

def thumbnail
  urlify(5)
end