Class: Commit

Inherits:
Object
  • Object
show all
Defined in:
lib/data/commit.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(summary, errors = {}) ⇒ Commit

Returns a new instance of Commit.



6
7
8
9
# File 'lib/data/commit.rb', line 6

def initialize(summary, errors = {})
  @summary = summary
  @errors = errors
end

Instance Attribute Details

#errorsObject

Returns the value of attribute errors.



4
5
6
# File 'lib/data/commit.rb', line 4

def errors
  @errors
end

#summaryObject

Returns the value of attribute summary.



4
5
6
# File 'lib/data/commit.rb', line 4

def summary
  @summary
end