Class: Octogate::GH::Commit
- Inherits:
-
Object
- Object
- Octogate::GH::Commit
- Includes:
- Model
- Defined in:
- lib/octogate/gh/commit.rb
Instance Attribute Summary collapse
-
#added ⇒ Object
readonly
Returns the value of attribute added.
-
#author ⇒ Object
readonly
Returns the value of attribute author.
-
#commiter ⇒ Object
readonly
Returns the value of attribute commiter.
-
#distinct ⇒ Object
readonly
Returns the value of attribute distinct.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#modified ⇒ Object
readonly
Returns the value of attribute modified.
-
#removed ⇒ Object
readonly
Returns the value of attribute removed.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Commit
constructor
A new instance of Commit.
Constructor Details
#initialize(**args) ⇒ Commit
Returns a new instance of Commit.
7 8 9 10 11 12 |
# File 'lib/octogate/gh/commit.rb', line 7 def initialize(**args) new_args = args.deep_symbolize_keys new_args[:author] = GH::User.new(new_args[:author]) if new_args[:author] new_args[:committer] = GH::User.new(new_args[:committer]) if new_args[:committer] super(new_args) end |
Instance Attribute Details
#added ⇒ Object (readonly)
Returns the value of attribute added.
5 6 7 |
# File 'lib/octogate/gh/commit.rb', line 5 def added @added end |
#author ⇒ Object (readonly)
Returns the value of attribute author.
5 6 7 |
# File 'lib/octogate/gh/commit.rb', line 5 def end |
#commiter ⇒ Object (readonly)
Returns the value of attribute commiter.
5 6 7 |
# File 'lib/octogate/gh/commit.rb', line 5 def commiter @commiter end |
#distinct ⇒ Object (readonly)
Returns the value of attribute distinct.
5 6 7 |
# File 'lib/octogate/gh/commit.rb', line 5 def distinct @distinct end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/octogate/gh/commit.rb', line 5 def id @id end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
5 6 7 |
# File 'lib/octogate/gh/commit.rb', line 5 def end |
#modified ⇒ Object (readonly)
Returns the value of attribute modified.
5 6 7 |
# File 'lib/octogate/gh/commit.rb', line 5 def modified @modified end |
#removed ⇒ Object (readonly)
Returns the value of attribute removed.
5 6 7 |
# File 'lib/octogate/gh/commit.rb', line 5 def removed @removed end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
5 6 7 |
# File 'lib/octogate/gh/commit.rb', line 5 def end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
5 6 7 |
# File 'lib/octogate/gh/commit.rb', line 5 def url @url end |