Class: ComicVine::CVSearchList
- Defined in:
- lib/comic_vine/cv_list.rb
Instance Attribute Summary collapse
-
#query ⇒ Object
readonly
Returns the value of attribute query.
-
#resource ⇒ Object
readonly
Returns the value of attribute resource.
Attributes inherited from CVList
#cvos, #limit, #offset, #total_count
Instance Method Summary collapse
-
#initialize(resp, resc, query) ⇒ CVSearchList
constructor
A new instance of CVSearchList.
- #next_page ⇒ Object
- #prev_page ⇒ Object
Methods inherited from CVList
Constructor Details
#initialize(resp, resc, query) ⇒ CVSearchList
Returns a new instance of CVSearchList.
59 60 61 62 63 64 65 |
# File 'lib/comic_vine/cv_list.rb', line 59 def initialize(resp, resc, query) super(resp) @resource = resc @query = query @cvos = resp['results'].map{ |r| ComicVine::CVObject.new(r)} end |
Instance Attribute Details
#query ⇒ Object (readonly)
Returns the value of attribute query.
57 58 59 |
# File 'lib/comic_vine/cv_list.rb', line 57 def query @query end |
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
56 57 58 |
# File 'lib/comic_vine/cv_list.rb', line 56 def resource @resource end |