Class: Ossy::CLI::Changelogs::Generate::Context

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/ossy/cli/changelogs/generate.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.new(data) ⇒ Object



16
17
18
# File 'lib/ossy/cli/changelogs/generate.rb', line 16

def self.new(data)
  super(releases: data.map(&Release))
end

Instance Method Details

#update(hash) ⇒ Object



20
21
22
23
# File 'lib/ossy/cli/changelogs/generate.rb', line 20

def update(hash)
  hash.each { |k, v| self[k.to_sym] = v }
  self
end