module Rubybear::OperationTypes

See: github.com/bearshares/bears-js/blob/766746adb5ded86380be982c844f4c269f7800ae/src/auth/serializer/src/operations.js

Constants

TYPES

Public Instance Methods

type(key, param, value) click to toggle source
# File lib/rubybear/operation_types.rb, line 130
def type(key, param, value)
  return if value.nil?
  
  t = TYPES[key] or return value
  p = t[param] or return value
  
  p.new(value)
end