mirror of
https://github.com/thewesker/ebooks_example.git
synced 2025-12-19 20:01:12 -05:00
Why did I write my own block method?
This commit is contained in:
10
boodoo.rb
10
boodoo.rb
@@ -134,14 +134,8 @@ class Ebooks::Boodoo::BoodooBot < Ebooks::Bot
|
||||
@archive = Archive.new(@original, @archive_path, make_client).sync
|
||||
end
|
||||
|
||||
def block(targets)
|
||||
if targets.kind_of? String
|
||||
targets = parse_array(targets)
|
||||
end
|
||||
targets.each do |target|
|
||||
log "Blocking @#{target}"
|
||||
Twitter::REST::Request.new(@twitter, :post, "1.1/blocks/create.json", {:screen_name => target}).perform
|
||||
end
|
||||
def block(*args)
|
||||
twitter.block(*args)
|
||||
end
|
||||
|
||||
def make_model!
|
||||
|
||||
Reference in New Issue
Block a user