Class: SteemApi::Comment
- Defined in:
- lib/steem_api/models/comment.rb
Class Method Summary collapse
- .find_by_author(author) ⇒ Object
- .find_by_author_and_permlink(author, permlink) ⇒ Object
- .find_by_parent(parent_author) ⇒ Object
Instance Method Summary collapse
Methods inherited from SqlBase
Class Method Details
.find_by_author(author) ⇒ Object
69 70 71 |
# File 'lib/steem_api/models/comment.rb', line 69 def self.() where(author: ).first end |
.find_by_author_and_permlink(author, permlink) ⇒ Object
77 78 79 |
# File 'lib/steem_api/models/comment.rb', line 77 def self.(, permlink) where(author: , permlink: permlink).first end |
.find_by_parent(parent_author) ⇒ Object
73 74 75 |
# File 'lib/steem_api/models/comment.rb', line 73 def self.find_by_parent() where(parent_author: ).first end |
Instance Method Details
#beneficiaries ⇒ Object
81 82 83 |
# File 'lib/steem_api/models/comment.rb', line 81 def beneficiaries JSON[self[:beneficiaries]] end |
#tag_names ⇒ Object
85 86 87 |
# File 'lib/steem_api/models/comment.rb', line 85 def tag_names .pluck(:tag) end |