Class: LgPodPlugin::LPodLatestRefs

Inherits:
Object
  • Object
show all
Defined in:
lib/lg_pod_plugin/db/database.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#branchObject

Returns the value of attribute branch.



33
34
35
# File 'lib/lg_pod_plugin/db/database.rb', line 33

def branch
  @branch
end

#commitObject

Returns the value of attribute commit.



34
35
36
# File 'lib/lg_pod_plugin/db/database.rb', line 34

def commit
  @commit
end

#gitObject

Returns the value of attribute git.



32
33
34
# File 'lib/lg_pod_plugin/db/database.rb', line 32

def git
  @git
end

#idObject

Returns the value of attribute id.



29
30
31
# File 'lib/lg_pod_plugin/db/database.rb', line 29

def id
  @id
end

#nameObject

Returns the value of attribute name.



30
31
32
# File 'lib/lg_pod_plugin/db/database.rb', line 30

def name
  @name
end

#tagObject

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) ⇒ Object



45
46
47
48
# File 'lib/lg_pod_plugin/db/database.rb', line 45

def self.get_pod_id(name, git)
  key = name + git
  return Digest::MD5.hexdigest(key)
end