class Wykop::Operations::Tag
Public Class Methods
new(client)
click to toggle source
Documentation: www.wykop.pl/dla-programistow/dokumentacja/#info6_17
# File lib/wykop/operations/tag.rb, line 5 def initialize(client) @client = client @request = Wykop::Operations::Request.new(@client) end
Public Instance Methods
tag_block( p = {} )
click to toggle source
# File lib/wykop/operations/tag.rb, line 24 def tag_block( p = {} ) return @request.execute(@request.replace_url({ :banana => 'tag', :potato => 'block', :param1 => p[:param1]}), Hash.new) end
tag_observe( p = {} )
click to toggle source
# File lib/wykop/operations/tag.rb, line 16 def tag_observe( p = {} ) return @request.execute(@request.replace_url({ :banana => 'tag', :potato => 'observe', :param1 => p[:param1]}), Hash.new) end
tag_show( p = {} )
click to toggle source
# File lib/wykop/operations/tag.rb, line 10 def tag_show( p = {} ) if ! p.has_key?(:page); p[:page] = 0; end if ! p.has_key?(:type); p[:type] = 'index'; end return @request.execute(@request.replace_url({ :banana => 'tag', :potato => p[:type], :param1 => p[:param1], :page => p[:page] } ), Hash.new) end
tag_unblock( p = {} )
click to toggle source
# File lib/wykop/operations/tag.rb, line 28 def tag_unblock( p = {} ) return @request.execute(@request.replace_url({ :banana => 'tag', :potato => 'unblock', :param1 => p[:param1]}), Hash.new) end
tag_unobserve( p = {} )
click to toggle source
# File lib/wykop/operations/tag.rb, line 20 def tag_unobserve( p = {} ) return @request.execute(@request.replace_url({ :banana => 'tag', :potato => 'unobserve', :param1 => p[:param1]}), Hash.new) end