Class: MediaArtsDb::Comic::Search
- Inherits:
-
RetrieveTemplate
- Object
- RetrieveTemplate
- MediaArtsDb::Comic::Search
- Defined in:
- lib/media_arts_db/comic/retrieve.rb
Instance Method Summary collapse
-
#initialize(option, per: 100, page: 1) ⇒ Search
constructor
A new instance of Search.
Methods inherited from RetrieveTemplate
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 |