module Rubybear::OperationIds

Constants

IDS

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

Public Instance Methods

id(op) click to toggle source
# File lib/rubybear/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