Skip to content

Instantly share code, notes, and snippets.

@tanatana
Created October 25, 2012 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tanatana/3953027 to your computer and use it in GitHub Desktop.
Save tanatana/3953027 to your computer and use it in GitHub Desktop.
なんか普通な気がしてきた
tl.each do |status|
urls = status.entities.urls
if !urls.empty?
mongo_status = Status.new(status)
mongo_status.save
end
end
statuses = Status.all()
statuses.each do |status|
status.text
=> "とれる"
status.user.screen_name
=> nil
status.user["screen_name"]
=> "とれる"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment