Class: Teleportd::GetSearchResult

Inherits:
SearchResult show all
Defined in:
lib/teleportd/get_search_result.rb

Instance Attribute Summary

Attributes inherited from SearchResult

#result_hash

Instance Method Summary collapse

Methods inherited from SearchResult

#date, #full_resolution_url, #hashtags, #initialize, #location, #mentions, #profile_pic_url, #sha, #source, #text, #thumbnail_url, #type, #users

Constructor Details

This class inherits a constructor from Teleportd::SearchResult

Instance Method Details

#commentsArray<Hash>

Returns the associated comment information from the Get request as hashes.

Returns:

  • (Array<Hash>)


8
9
10
# File 'lib/teleportd/get_search_result.rb', line 8

def comments
  result_hash['cmt']
end