class Jafry::Identificator::Number

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 116
def id_scaffold(wrapper, scheme)
  {"#{wrapper}" => Identificator::inc_scheme_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 108
def scheme_scaffold(scheme_name)
  {scheme: scheme_name, counter: 0}
end