Class: MediaArtsDb::Comic::Search

Inherits:
RetrieveTemplate show all
Defined in:
lib/media_arts_db/comic/retrieve.rb

Instance Method Summary collapse

Methods inherited from RetrieveTemplate

#execute

Constructor Details

#initialize(option, per: 100, page: 1) ⇒ Search

Returns a new instance of Search.



29
30
31
32
33
# File 'lib/media_arts_db/comic/retrieve.rb', line 29

def initialize(option, per: 100, page: 1)
  @uri = MediaArtsDb.comic_search_uri
  @target = option.target
  @query = query_builder(option.build.merge({per: per, page: page}))
end