Method: Sentra::ProcessingClient#prepare_article
- Defined in:
- lib/sentra/sents.rb
#prepare_article(content, url, title, domain = 'GENERAL') ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/sentra/sents.rb', line 10 def prepare_article content, url, title, domain='GENERAL' calendar = Util::Calendar.getInstance(); @tweet.setUrl(Net::URL.new(url)); @tweet.setDate(calendar.getTime) @tweet.setTitle(title) @tweet.setChannel(domain) @tweet.setContent(content) end |