Sha256: b6cd3f648d5ada86fedce2986a0eed76dd90b7949335a2cc1705b865beb54347
Contents?: true
Size: 370 Bytes
Versions: 2
Compression:
Stored size: 370 Bytes
Contents
module Vzaar module Resource class VideoCollection < Array attr_reader :http_status_code def initialize(xml_body, status_code) @http_status_code = status_code.to_i doc = Nokogiri::XML(xml_body) doc.xpath("//videos/video").each do |xml| push(VideoCollectionItem.new(xml.to_s)) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vzaar-1.3.1 | lib/vzaar/resources/video_collection.rb |
vzaar-1.3.0 | lib/vzaar/resources/video_collection.rb |