Class: Ufebs::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/ufebs/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#standardObject

Returns the value of attribute standard.



3
4
5
# File 'lib/ufebs/configuration.rb', line 3

def standard
  @standard
end

Instance Method Details

#schemasObject



5
6
7
# File 'lib/ufebs/configuration.rb', line 5

def schemas
  schemas_hash[standard]
end

#schemas_hashObject



9
10
11
12
13
14
15
# File 'lib/ufebs/configuration.rb', line 9

def schemas_hash
  {
    '2017' => File.expand_path('../../../XMLSchemas/cbr_ed_kbr_v2017.4.2.xsd', __FILE__),
    '2018' => File.expand_path('../../../XMLSchemas_2018/cbr_ed_kbr_v2018.3.2.xsd', __FILE__),
    '2019' => File.expand_path('../../../XMLSchemas_2019/cbr_ed_kbr_v2019.2.1.xsd', __FILE__)
  }
end