Class: Amanuensis::Builder

Inherits:
Struct
  • Object
show all
Defined in:
lib/amanuensis/builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fromObject

Returns the value of attribute from

Returns:

  • (Object)

    the current value of from



2
3
4
# File 'lib/amanuensis/builder.rb', line 2

def from
  @from
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



2
3
4
# File 'lib/amanuensis/builder.rb', line 2

def version
  @version
end

Instance Method Details

#buildObject



4
5
6
7
8
9
10
# File 'lib/amanuensis/builder.rb', line 4

def build
  add_header
  add_issues if issues.any?
  add_pulls if pulls.any?

  changelog
end