Class: Houston::Adapters::VersionControl::Commit
- Inherits:
-
Object
- Object
- Houston::Adapters::VersionControl::Commit
- Defined in:
- app/adapters/houston/adapters/version_control/commit.rb
Instance Attribute Summary collapse
-
#author_email ⇒ Object
readonly
Returns the value of attribute author_email.
-
#author_name ⇒ Object
readonly
Returns the value of attribute author_name.
-
#authored_at ⇒ Object
readonly
Returns the value of attribute authored_at.
-
#committed_at ⇒ Object
readonly
Returns the value of attribute committed_at.
-
#committer_email ⇒ Object
readonly
Returns the value of attribute committer_email.
-
#committer_name ⇒ Object
readonly
Returns the value of attribute committer_name.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#parent_sha ⇒ Object
readonly
Returns the value of attribute parent_sha.
-
#sha ⇒ Object
readonly
Returns the value of attribute sha.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Commit
constructor
A new instance of Commit.
- #to_s ⇒ Object
Constructor Details
#initialize(attributes = {}) ⇒ Commit
Returns a new instance of Commit.
6 7 8 9 10 11 12 13 14 15 16 |
# File 'app/adapters/houston/adapters/version_control/commit.rb', line 6 def initialize(attributes={}) @sha = attributes[:sha] @parent_sha = attributes[:parent_sha] @message = attributes[:message] @authored_at = attributes[:authored_at] @author_name = attributes[:author_name] @author_email = attributes[:author_email] @committed_at = attributes[:committed_at] @committer_name = attributes[:committer_name] @committer_email = attributes[:committer_email] end |
Instance Attribute Details
#author_email ⇒ Object (readonly)
Returns the value of attribute author_email.
18 19 20 |
# File 'app/adapters/houston/adapters/version_control/commit.rb', line 18 def @author_email end |
#author_name ⇒ Object (readonly)
Returns the value of attribute author_name.
18 19 20 |
# File 'app/adapters/houston/adapters/version_control/commit.rb', line 18 def @author_name end |
#authored_at ⇒ Object (readonly)
Returns the value of attribute authored_at.
18 19 20 |
# File 'app/adapters/houston/adapters/version_control/commit.rb', line 18 def @authored_at end |
#committed_at ⇒ Object (readonly)
Returns the value of attribute committed_at.
18 19 20 |
# File 'app/adapters/houston/adapters/version_control/commit.rb', line 18 def committed_at @committed_at end |
#committer_email ⇒ Object (readonly)
Returns the value of attribute committer_email.
18 19 20 |
# File 'app/adapters/houston/adapters/version_control/commit.rb', line 18 def committer_email @committer_email end |
#committer_name ⇒ Object (readonly)
Returns the value of attribute committer_name.
18 19 20 |
# File 'app/adapters/houston/adapters/version_control/commit.rb', line 18 def committer_name @committer_name end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
18 19 20 |
# File 'app/adapters/houston/adapters/version_control/commit.rb', line 18 def @message end |
#parent_sha ⇒ Object (readonly)
Returns the value of attribute parent_sha.
18 19 20 |
# File 'app/adapters/houston/adapters/version_control/commit.rb', line 18 def parent_sha @parent_sha end |
#sha ⇒ Object (readonly)
Returns the value of attribute sha.
18 19 20 |
# File 'app/adapters/houston/adapters/version_control/commit.rb', line 18 def sha @sha end |
Instance Method Details
#to_s ⇒ Object
22 23 24 |
# File 'app/adapters/houston/adapters/version_control/commit.rb', line 22 def to_s sha[0...7] end |