Class: Citrus::Core::Commit

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sha, author, message, timestamp, changes, url = nil) ⇒ Commit

Returns a new instance of Commit.



9
10
11
12
13
14
15
16
# File 'lib/citrus/core/commit.rb', line 9

def initialize(sha, author, message, timestamp, changes, url = nil)
  @sha       = sha
  @url       = url
  @author    = author
  @message   = message
  @changes   = changes
  @timestamp = timestamp
end

Instance Attribute Details

#authorObject (readonly)

Returns the value of attribute author.



7
8
9
# File 'lib/citrus/core/commit.rb', line 7

def author
  @author
end

#changesObject (readonly)

Returns the value of attribute changes.



7
8
9
# File 'lib/citrus/core/commit.rb', line 7

def changes
  @changes
end

#messageObject (readonly)

Returns the value of attribute message.



7
8
9
# File 'lib/citrus/core/commit.rb', line 7

def message
  @message
end

#shaObject (readonly)

Returns the value of attribute sha.



7
8
9
# File 'lib/citrus/core/commit.rb', line 7

def sha
  @sha
end

#timestampObject (readonly)

Returns the value of attribute timestamp.



7
8
9
# File 'lib/citrus/core/commit.rb', line 7

def timestamp
  @timestamp
end

#urlObject (readonly)

Returns the value of attribute url.



7
8
9
# File 'lib/citrus/core/commit.rb', line 7

def url
  @url
end