Class: LgPodPlugin::LPodLatestRefs
- Inherits:
-
Object
- Object
- LgPodPlugin::LPodLatestRefs
- Defined in:
- lib/lg_pod_plugin/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.
33 34 35 36 37 38 39 40 |
# File 'lib/lg_pod_plugin/database.rb', line 33 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.
30 31 32 |
# File 'lib/lg_pod_plugin/database.rb', line 30 def branch @branch end |
#commit ⇒ Object
Returns the value of attribute commit.
31 32 33 |
# File 'lib/lg_pod_plugin/database.rb', line 31 def commit @commit end |
#git ⇒ Object
Returns the value of attribute git.
29 30 31 |
# File 'lib/lg_pod_plugin/database.rb', line 29 def git @git end |
#id ⇒ Object
Returns the value of attribute id.
26 27 28 |
# File 'lib/lg_pod_plugin/database.rb', line 26 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
27 28 29 |
# File 'lib/lg_pod_plugin/database.rb', line 27 def name @name end |
#tag ⇒ Object
Returns the value of attribute tag.
28 29 30 |
# File 'lib/lg_pod_plugin/database.rb', line 28 def tag @tag end |
Class Method Details
.get_pod_id(name, git) ⇒ Object
42 43 44 45 |
# File 'lib/lg_pod_plugin/database.rb', line 42 def self.get_pod_id(name, git) key = name + git return Digest::MD5.hexdigest(key) end |