Class: LgPodPlugin::LPodLatestRefs
- Inherits:
-
Object
- Object
- LgPodPlugin::LPodLatestRefs
- Defined in:
- lib/lg_pod_plugin/db/database.rb
Instance Attribute Summary collapse
-
#branch ⇒ Object
Returns the value of attribute branch.
-
#commit ⇒ Object
Returns the value of attribute commit.
-
#git ⇒ Object
Returns the value of attribute git.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#tag ⇒ Object
Returns the value of attribute tag.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id, name, git, branch, tag, commit) ⇒ LPodLatestRefs
constructor
A new instance of LPodLatestRefs.
Constructor Details
#initialize(id, name, git, branch, tag, commit) ⇒ LPodLatestRefs
Returns a new instance of LPodLatestRefs.
36 37 38 39 40 41 42 43 |
# File 'lib/lg_pod_plugin/db/database.rb', line 36 def initialize(id, name, git, branch, tag, commit) self.id = id self.git = git self.tag = tag self.name = name self.branch = branch self.commit = commit end |
Instance Attribute Details
#branch ⇒ Object
Returns the value of attribute branch.
33 34 35 |
# File 'lib/lg_pod_plugin/db/database.rb', line 33 def branch @branch end |
#commit ⇒ Object
Returns the value of attribute commit.
34 35 36 |
# File 'lib/lg_pod_plugin/db/database.rb', line 34 def commit @commit end |
#git ⇒ Object
Returns the value of attribute git.
32 33 34 |
# File 'lib/lg_pod_plugin/db/database.rb', line 32 def git @git end |
#id ⇒ Object
Returns the value of attribute id.
29 30 31 |
# File 'lib/lg_pod_plugin/db/database.rb', line 29 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
30 31 32 |
# File 'lib/lg_pod_plugin/db/database.rb', line 30 def name @name end |
#tag ⇒ Object
Returns the value of attribute tag.
31 32 33 |
# File 'lib/lg_pod_plugin/db/database.rb', line 31 def tag @tag end |
Class Method Details
.get_pod_id(name, git, branch) ⇒ Object
45 46 47 48 |
# File 'lib/lg_pod_plugin/db/database.rb', line 45 def self.get_pod_id(name, git, branch) key = name + git + branch return Digest::MD5.hexdigest(key) end |