class HiveSQL::Account

Public Instance Methods

all_communities() click to toggle source
# File lib/hive_sql/models/account.rb, line 39
def all_communities
  HiveSQL::Community.where('name IN(?) OR name IN(?)', roles.select(:community), subscriptions.select(:community))
end
proxied_vsf_votes_total() click to toggle source
# File lib/hive_sql/models/account.rb, line 47
def proxied_vsf_votes_total
  JSON[proxied_vsf_votes].map(&:to_i).sum
end
witness?() click to toggle source
# File lib/hive_sql/models/account.rb, line 43
def witness?
  !!witness
end