Exception: Biblionet::Extractors::NoImageError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/bookshark/extractors/book_extractor.rb

Overview

Raised when a book has no image.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(biblionet_id) ⇒ NoImageError

Returns a new instance of NoImageError.



381
382
383
384
# File 'lib/bookshark/extractors/book_extractor.rb', line 381

def initialize(biblionet_id)        
  msg = "This book has no image. At book #{biblionet_id}"
  super(msg)
end

Instance Attribute Details

#biblionet_idObject (readonly)

Returns the value of attribute biblionet_id.



379
380
381
# File 'lib/bookshark/extractors/book_extractor.rb', line 379

def biblionet_id
  @biblionet_id
end