Class: Ticket::Replicator::Mappings

Inherits:
Object
  • Object
show all
Defined in:
lib/ticket/replicator/mappings.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.file_pathObject



6
7
8
# File 'lib/ticket/replicator/mappings.rb', line 6

def self.file_path
  File.join("config", "ticket-replicator.mappings.yml")
end

Instance Method Details

#to_hObject



10
11
12
# File 'lib/ticket/replicator/mappings.rb', line 10

def to_h
  @to_h = YAML.safe_load_file(self.class.file_path, symbolize_names: false)
end