Class: SteemApi::Account

Inherits:
SqlBase
  • Object
show all
Defined in:
lib/steem_api/models/account.rb

Instance Method Summary collapse

Methods inherited from SqlBase

#tx

Instance Method Details

#all_communitiesObject



39
40
41
# File 'lib/steem_api/models/account.rb', line 39

def all_communities
  SteemApi::Community.where('name IN(?) OR name IN(?)', roles.select(:community), subscriptions.select(:community))
end

#proxied_vsf_votes_totalObject



47
48
49
# File 'lib/steem_api/models/account.rb', line 47

def proxied_vsf_votes_total
  JSON[proxied_vsf_votes].map(&:to_i).sum
end

#witness?Boolean

Returns:

  • (Boolean)


43
44
45
# File 'lib/steem_api/models/account.rb', line 43

def witness?
  !!witness
end