Class: SteemApi::Comment

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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from SqlBase

#tx

Class Method Details

.find_by_author(user) ⇒ Object



41
42
43
# File 'lib/steem_api/models/comment.rb', line 41

def self.find_by_author(user)
  self.where(author: user)
end

.find_by_parent(user) ⇒ Object



45
46
47
# File 'lib/steem_api/models/comment.rb', line 45

def self.find_by_parent(user)
  self.where(parent_author: user)
end

Instance Method Details

#beneficiariesObject



49
50
51
# File 'lib/steem_api/models/comment.rb', line 49

def beneficiaries
  JSON[self[:beneficiaries]]
end