Class: SteemApi::Account
- Defined in:
- lib/steem_api/models/account.rb
Instance Method Summary collapse
Methods inherited from SqlBase
Instance Method Details
#all_communities ⇒ Object
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_total ⇒ Object
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
43 44 45 |
# File 'lib/steem_api/models/account.rb', line 43 def witness? !!witness end |