Class: SteemApi::Tx::Custom::Community

Inherits:
SteemApi::Tx::Custom show all
Defined in:
lib/steem_api/models/tx/custom/community.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from SqlBase

#tx

Class Method Details

.opsObject



23
24
25
# 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

Instance Method Details

#payloadObject



27
28
29
# File 'lib/steem_api/models/tx/custom/community.rb', line 27

def payload
  JSON[][1] rescue nil
end