FlickRaw 库返回一个“#< FlickRaw::ResponseList:0x007fbe843a9ea0 >”对象(如果我打印它),在应用 .to_hash 方法后将其转换为哈希,我可以使用 puts 打印:
{"id":"9490885638","secret":"4c05132e6a","server":"7293","farm":8,"dateuploaded":"1376261143",
"isfavorite":0,"license":"0","safety_level":"0","rotation":0,
"owner":"#<FlickRaw::Response:0x007fbe843a9ea0>",
"title":"stolen memories.","description":"Dresden, 2013.\nPlatz vor der Semperoper.",
"visibility":"#<FlickRaw::Response:0x007fbe843b1790>",
"dates":"#<FlickRaw::Response:0x007fbe843bb3a8>", ... }
那么,如果我打印返回值(没有看到一些“#< FlickRaw::Response:0x007fbe843a9ea0 >”哈希),如何深入转换返回值以查看所有嵌套值/结构?
PS这些对我不起作用[转换为 JSON 的 Ruby 哈希仅显示对象名称]