class Threesixtyvoice::Popular
Attributes
popular_blogs[R]
version[R]
Public Class Methods
new(doc)
click to toggle source
# File lib/threesixtyvoice/popular.rb, line 5 def initialize(doc) @version = doc.xpath('//api/info/version').text @popular_blogs = doc.xpath('//api/mostpopular/gamer').map do |i| PopularBlog.new(i.xpath('rank').text, i.xpath('gamertag').text,i.xpath('url').text) end end