class Tagfish::Tags

Attributes

tag_map[R]

Public Class Methods

new(tag_map) click to toggle source
# File lib/tagfish/tags.rb, line 9
def initialize(tag_map)
  @tag_map = tag_map
end

Public Instance Methods

latest_tags() click to toggle source
# File lib/tagfish/tags.rb, line 17
def latest_tags
  tag_names.select do |tag_name|
    (tag_map[tag_name] == tag_map["latest"]) && (tag_name != "latest")
  end
end
tag_names() click to toggle source
# File lib/tagfish/tags.rb, line 13
def tag_names
  tag_map.keys.sort
end