class SteemApi::Tx::Custom::Community

Public Class Methods

ops() click to toggle source
# File lib/steem_api/models/tx/custom/community.rb, line 23
def self.ops
  distinct.normalized_json.pluck(Arel.sql "JSON_VALUE([TxCustoms].[json_metadata], '$[0]') AS ops")
end

Public Instance Methods

payload() click to toggle source
# File lib/steem_api/models/tx/custom/community.rb, line 27
def payload
  JSON[json_metadata][1] rescue nil
end