Method: OpenLibraryCover#initialize

Defined in:
app/service_adaptors/open_library_cover.rb

#initialize(config) ⇒ OpenLibraryCover

Returns a new instance of OpenLibraryCover.



13
14
15
16
17
18
19
20
21
22
# File 'app/service_adaptors/open_library_cover.rb', line 13

def initialize(config)
  @base_url = "http://covers.openlibrary.org/b/"    
  @size = "medium" # "small", "medium" or "large"
  
  @credits = {
    "OpenLibrary" => "http://openlibrary.org/"
  }
  
  super(config)
end