class Provider

Direct Known Subclasses

Defined in:

cover.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(server : String, prefix : String, suffix : String, image_tag : String, dbname : String, table : String) #

[View source]

Instance Method Detail

def add_to_db(isbn : String, url : String) #

Add an entry to the cache database


[View source]
def finalize #

[View source]
def get_api(isbn : String) #

Try to get a single image URL from the book API provider.


[View source]
def get_db(isbn : String) #

Try to get a single image URL from the cache database.


[View source]