class Wykop::Operations::Popular
Public Class Methods
new(client)
click to toggle source
Documentation: www.wykop.pl/dla-programistow/dokumentacja/#info6_4
# File lib/wykop/operations/popular.rb, line 5 def initialize(client) @client = client @request = Wykop::Operations::Request.new(@client) end
Public Instance Methods
popular_show( p = {} )
click to toggle source
# File lib/wykop/operations/popular.rb, line 10 def popular_show( p = {} ) if ! p.has_key?(:category); p[:category] = 'promoted'; end q_url = @request.replace_url({ :banana => 'popular', :potato => p[:category]}) q_body = Hash.new return @request.execute(q_url, q_body) end