Class: MediaArtsDb::Comic::SearchWork
- Inherits:
-
RetrieveTemplate
- Object
- RetrieveTemplate
- MediaArtsDb::Comic::SearchWork
- Defined in:
- lib/media_arts_db/comic/retrieve.rb
Instance Method Summary collapse
-
#initialize(keyword, per: 100, page: 1) ⇒ SearchWork
constructor
A new instance of SearchWork.
Methods inherited from RetrieveTemplate
Constructor Details
#initialize(keyword, per: 100, page: 1) ⇒ SearchWork
Returns a new instance of SearchWork.
163 164 165 166 |
# File 'lib/media_arts_db/comic/retrieve.rb', line 163 def initialize(keyword, per: 100, page: 1) @uri = MediaArtsDb.comic_search_uri @query = query_builder({keyword_title: keyword, per: per, page: page}) end |