-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
Description
#<Twingly::Search::Result:0x3fc870543c10 @posts, @number_of_matches_returned=1000, @number_of_matches_total=2847@incomplete_result=false>twingly-search-api-ruby/lib/twingly/search/result.rb
Lines 38 to 43 in 785d860
| matches = "@posts, " | |
| matches << "@number_of_matches_returned=#{self.number_of_matches_returned}, " | |
| matches << "@number_of_matches_total=#{self.number_of_matches_total}" | |
| matches << "@incomplete_result=#{self.incomplete?}" | |
| sprintf("#<%s:0x%x %s>", self.class.name, __id__, matches) |
and:
twingly-search-api-ruby/lib/twingly/livefeed/result.rb
Lines 26 to 35 in 785d860
| instance_variables = "@posts, " | |
| instance_variables << "@ts=#{self.ts}, " | |
| instance_variables << "@from=#{self.from}, " | |
| instance_variables << "@number_of_posts=#{self.number_of_posts}, " | |
| instance_variables << "@max_number_of_posts=#{self.max_number_of_posts}, " | |
| instance_variables << "@first_post=#{self.first_post}, " | |
| instance_variables << "@last_post=#{self.last_post}" | |
| instance_variables << "@next_timestamp=#{self.next_timestamp}" | |
| sprintf("#<%s:0x%x %s>", self.class.name, __id__, instance_variables) |
We should probably do something like this instead:
[
"@posts",
"@number_of_matches_returned=#{self.number_of_matches_returned}",
"@number_of_matches_total=#{self.number_of_matches_total}",
"@incomplete_result=#{self.incomplete?}",
].join(", ")