class Twoffein::Cookie

Attributes

target_screen_name[RW]

Public Class Methods

new(target_screen_name) click to toggle source
# File lib/twoffein-client/cookie.rb, line 8
def initialize target_screen_name
  @target_screen_name = target_screen_name
end

Public Instance Methods

post() click to toggle source
# File lib/twoffein-client/cookie.rb, line 12
def post
  info = HTTP.post("cookie", :target_screen_name => @target_screen_name)
  raise Server::Error.new(info[:code], info[:error]) if info.has_key? :error
  info
end
Also aliased as: send
send()
Alias for: post
to_s() click to toggle source
# File lib/twoffein-client/cookie.rb, line 19
def to_s
  "Ich gebe #@target_screen_name einen Keks!"
end