Class: Octogate::GH::Commit

Inherits:
Object
  • Object
show all
Includes:
Model
Defined in:
lib/octogate/gh/commit.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#addedObject (readonly)

Returns the value of attribute added.



5
6
7
# File 'lib/octogate/gh/commit.rb', line 5

def added
  @added
end

#authorObject (readonly)

Returns the value of attribute author.



5
6
7
# File 'lib/octogate/gh/commit.rb', line 5

def author
  @author
end

#commiterObject (readonly)

Returns the value of attribute commiter.



5
6
7
# File 'lib/octogate/gh/commit.rb', line 5

def commiter
  @commiter
end

#distinctObject (readonly)

Returns the value of attribute distinct.



5
6
7
# File 'lib/octogate/gh/commit.rb', line 5

def distinct
  @distinct
end

#idObject (readonly)

Returns the value of attribute id.



5
6
7
# File 'lib/octogate/gh/commit.rb', line 5

def id
  @id
end

#messageObject (readonly)

Returns the value of attribute message.



5
6
7
# File 'lib/octogate/gh/commit.rb', line 5

def message
  @message
end

#modifiedObject (readonly)

Returns the value of attribute modified.



5
6
7
# File 'lib/octogate/gh/commit.rb', line 5

def modified
  @modified
end

#removedObject (readonly)

Returns the value of attribute removed.



5
6
7
# File 'lib/octogate/gh/commit.rb', line 5

def removed
  @removed
end

#timestampObject (readonly)

Returns the value of attribute timestamp.



5
6
7
# File 'lib/octogate/gh/commit.rb', line 5

def timestamp
  @timestamp
end

#urlObject (readonly)

Returns the value of attribute url.



5
6
7
# File 'lib/octogate/gh/commit.rb', line 5

def url
  @url
end