Class: ReleaseHx::RHYML::ReleaseLoader

Inherits:
Loader
  • Object
show all
Defined in:
lib/releasehx/rhyml/loaders.rb

Class Method Summary collapse

Methods inherited from Loader

load_file

Class Method Details

.load(path) ⇒ Object



26
27
28
29
30
31
32
33
34
# File 'lib/releasehx/rhyml/loaders.rb', line 26

def self.load path
  hash = load_file(path)
  Release.new(
    code: hash['code'],
    date: hash['date'],
    hash: hash['hash'],
    memo: hash['memo'],
    changes: hash['changes'] || hash['work'] || [])
end