Class: Registration::Storage::RegCodes

Inherits:
Struct
  • Object
show all
Includes:
RegistrationCodesLoader, Singleton
Defined in:
src/lib/registration/storage.rb

Overview

storage for changed repositories

Constant Summary

Constants included from RegistrationCodesLoader

RegistrationCodesLoader::REGCODES_NAME_HANDLERS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from RegistrationCodesLoader

#parse_xml, #reg_codes_from_txt, #reg_codes_from_usb_stick, #reg_codes_from_xml, #with_tempfile

Constructor Details

#initializeRegCodes


38
39
40
41
42
43
44
# File 'src/lib/registration/storage.rb', line 38

def initialize
  self.reg_codes = if Stage.initial
    reg_codes_from_usb_stick || {}
  else
    {}
  end
end

Instance Attribute Details

#reg_codesObject

Returns the value of attribute reg_codes


34
35
36
# File 'src/lib/registration/storage.rb', line 34

def reg_codes
  @reg_codes
end