class SteemData::Post
Public Class Methods
find_flag_war()
click to toggle source
# File lib/steem_data/post.rb, line 39 def self.find_flag_war end
voters(options = {})
click to toggle source
# File lib/steem_data/post.rb, line 42 def self.voters(options = {}) options[:author.in] ||= distinct(:author) options[:permlink.in] ||= distinct(:permlink) options[:voter.in] ||= distinct('active_votes.voter') AccountOperation.type('vote').where(options).distinct(:voter) end
Public Instance Methods
commented_on?(name, options = {})
click to toggle source
# File lib/steem_data/post.rb, line 50 def commented_on?(name, options = {}) replies.map do |reply| false if !!options[:min_reputation] && reply['author_reputation'].to_i < options[:min_reputation] reply['author'] == name end.uniq.include? true end
pending_payout?()
click to toggle source
# File lib/steem_data/post.rb, line 58 def pending_payout? cashout_time > Time.now.utc end