Class: SteemApi::Comment

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

Class Method Summary collapse

Methods inherited from SqlBase

#tx

Class Method Details

.find_by_author(user) ⇒ Object



6
7
8
# File 'lib/steem_api/models/comment.rb', line 6

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

.find_by_parent(user) ⇒ Object



10
11
12
# File 'lib/steem_api/models/comment.rb', line 10

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