Class: ComicVine::CVObjectList
- Defined in:
- lib/comic_vine/cv_list.rb
Instance Attribute Summary collapse
-
#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) ⇒ CVObjectList
constructor
A new instance of CVObjectList.
- #next_page ⇒ Object
- #prev_page ⇒ Object
Methods inherited from CVList
Constructor Details
#initialize(resp, resc) ⇒ CVObjectList
Returns a new instance of CVObjectList.
37 38 39 40 41 42 |
# File 'lib/comic_vine/cv_list.rb', line 37 def initialize(resp, resc) super(resp) @resource = resc @cvos = resp['results'].map{ |r| ComicVine::CVObject.new(r)} end |
Instance Attribute Details
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
35 36 37 |
# File 'lib/comic_vine/cv_list.rb', line 35 def resource @resource end |