Class: Danger::Changelog::CommitWrapper

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/danger/plugins/changelog.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(commit, trailer_key, category) ⇒ CommitWrapper

Returns a new instance of CommitWrapper.



103
104
105
106
107
# File 'lib/danger/plugins/changelog.rb', line 103

def initialize(commit, trailer_key, category)
  @commit = commit
  @trailer_key = trailer_key
  @category = category
end

Instance Attribute Details

#categoryObject (readonly)

Returns the value of attribute category.



101
102
103
# File 'lib/danger/plugins/changelog.rb', line 101

def category
  @category
end

#trailer_keyObject (readonly)

Returns the value of attribute trailer_key.



101
102
103
# File 'lib/danger/plugins/changelog.rb', line 101

def trailer_key
  @trailer_key
end