Skip to content

Instantly share code, notes, and snippets.

@tsutsui
Created March 10, 2019 15:03
Show Gist options
  • Save tsutsui/8e44daaba31d7a77944ab36ba5783383 to your computer and use it in GitHub Desktop.
Save tsutsui/8e44daaba31d7a77944ab36ba5783383 to your computer and use it in GitHub Desktop.
ツイート本文が US-ASCII かつ 140文字以下で rest 受信した場合のキー一覧
{:created_at=>"Sun Mar 10 05:39:50 +0000 2019",
:id=>1104617839124594688,
:id_str=>"1104617839124594688",
:full_text=>"test https://t.co/aTzF5q9y7V",
:truncated=>false,
:display_text_range=>[0, 4],
:entities=>
{:hashtags=>[],
:symbols=>[],
:user_mentions=>[],
:urls=>
[{:url=>"https://t.co/aTzF5q9y7V",
:expanded_url=>"https://twitter.com/tsutsuii/status/1104613387940507649",
:display_url=>"twitter.com/tsutsuii/statu…",
:indices=>[5, 28]}]},
:source=>"Twitter Web App",
:in_reply_to_status_id=>nil,
:in_reply_to_status_id_str=>nil,
:in_reply_to_user_id=>nil,
:in_reply_to_user_id_str=>nil,
:in_reply_to_screen_name=>nil,
:user=>TwitterUser(@ahiru3net),
:geo=>nil,
:coordinates=>nil,
:place=>nil,
:contributors=>nil,
:is_quote_status=>true,
:quoted_status_id=>1104613387940507649,
:quoted_status_id_str=>"1104613387940507649",
:quoted_status_permalink=>
{:url=>"https://t.co/aTzF5q9y7V",
:expanded=>"https://twitter.com/tsutsuii/status/1104613387940507649",
:display=>"twitter.com/tsutsuii/statu…"},
:quoted_status=>
{:created_at=>"Sun Mar 10 05:22:09 +0000 2019",
:id=>1104613387940507649,
:id_str=>"1104613387940507649",
:full_text=>"filterstream のテストが難しい…… https://t.co/Bsr0n0DLpB",
:truncated=>false,
:display_text_range=>[0, 23],
:entities=>
{:hashtags=>[],
:symbols=>[],
:user_mentions=>[],
:urls=>
[{:url=>"https://t.co/Bsr0n0DLpB",
:expanded_url=>
"https://twitter.com/tsutsuii/status/1096052851896250368",
:display_url=>"twitter.com/tsutsuii/statu…",
:indices=>[24, 47]}]},
:source=>
"<a href="https://dev.mikutter.hachune.net/projects/mikutter/" rel="nofollow">mikutter alternative</a>",
:in_reply_to_status_id=>nil,
:in_reply_to_status_id_str=>nil,
:in_reply_to_user_id=>nil,
:in_reply_to_user_id_str=>nil,
:in_reply_to_screen_name=>nil,
:user=>
{:id=>91704555,
:id_str=>"91704555",
:name=>"Izumi Tsutsui",
:screen_name=>"tsutsuii",
:location=>"",
:description=>"NetBSDネタがメインですがもうあまりておくれることもないかも",
:url=>"http://t.co/hCsiDL3pg1",
:entities=>
{:url=>
{:urls=>
[{:url=>"http://t.co/hCsiDL3pg1",
:expanded_url=>"http://www.ceres.dti.ne.jp/tsutsui/NetBSD.html",
:display_url=>"ceres.dti.ne.jp/tsutsui/NetBSD…",
:indices=>[0, 22]}]},
:description=>{:urls=>[]}},
:protected=>false,
:followers_count=>1189,
:friends_count=>90,
:listed_count=>108,
:created_at=>"Sun Nov 22 02:28:19 +0000 2009",
:favourites_count=>21768,
:utc_offset=>nil,
:time_zone=>nil,
:geo_enabled=>false,
:verified=>false,
:statuses_count=>94869,
:lang=>"ja",
:contributors_enabled=>false,
:is_translator=>false,
:is_translation_enabled=>false,
:profile_background_color=>"C0DEED",
:profile_background_image_url=>
"http://abs.twimg.com/images/themes/theme1/bg.png",
:profile_background_image_url_https=>
"https://abs.twimg.com/images/themes/theme1/bg.png",
:profile_background_tile=>false,
:profile_image_url=>
"http://pbs.twimg.com/profile_images/602394238/ram2_normal.PNG",
:profile_image_url_https=>
"https://pbs.twimg.com/profile_images/602394238/ram2_normal.PNG",
:profile_banner_url=>
"https://pbs.twimg.com/profile_banners/91704555/1359209490",
:profile_link_color=>"1DA1F2",
:profile_sidebar_border_color=>"C0DEED",
:profile_sidebar_fill_color=>"DDEEF6",
:profile_text_color=>"333333",
:profile_use_background_image=>true,
:has_extended_profile=>false,
:default_profile=>true,
:default_profile_image=>false,
:following=>false,
:follow_request_sent=>false,
:notifications=>false,
:translator_type=>"regular"},
:geo=>nil,
:coordinates=>nil,
:place=>nil,
:contributors=>nil,
:is_quote_status=>true,
:quoted_status_id=>1096052851896250368,
:quoted_status_id_str=>"1096052851896250368",
:quoted_status_permalink=>
{:url=>"https://t.co/Bsr0n0DLpB",
:expanded=>"https://twitter.com/tsutsuii/status/1096052851896250368",
:display=>"twitter.com/tsutsuii/statu…"},
:retweet_count=>0,
:favorite_count=>0,
:favorited=>false,
:retweeted=>false,
:possibly_sensitive=>false,
:lang=>"ja"},
:retweet_count=>0,
:favorite_count=>0,
:favorited=>false,
:retweeted=>false,
:possibly_sensitive=>false,
:lang=>"en",
:message=>"test https://t.co/aTzF5q9y7V",
:created=>2019-03-10 14:39:50 +0900,
:exact=>false,
:receiver=>nil,
:replyto=>nil,
:retweet=>nil,
:modified=>2019-03-10 14:39:50 +0900}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment