module Radiator::OperationIds

Constants

IDS

These IDS are derrived from: github.com/steemit/steem/blob/127a441fbac2f06804359968bda83b66e602c891/libraries/protocol/include/steem/protocol/operations.hpp

Public Instance Methods

id(op) click to toggle source
# File lib/radiator/operation_ids.rb, line 90
def id(op)
  if op.to_s =~ /_operation$/
    IDS.find_index op
  else
    IDS.find_index "#{op}_operation".to_sym
  end
end