class Jafry::Identificator::Hash

Public Instance Methods

id_scaffold(wrapper, scheme) click to toggle source

Specify hash for basic scheme id type with custom id wrapper

@return [Hash] Hash with basic id

# File lib/jafry/identificator.rb, line 137
def id_scaffold(wrapper, scheme)
  {"#{wrapper}" => Identificator::hash_counter(scheme)}
end
scheme_scaffold(scheme_name) click to toggle source

Specify hash for basic scheme id type

@return [Hash] Hash with basic id

# File lib/jafry/identificator.rb, line 129
def scheme_scaffold(scheme_name)
  {scheme: scheme_name, counter: generate_hash}
end