class Terjira::Client::Field

Constants

CACHE_PATH

Public Class Methods

all() click to toggle source
# File lib/terjira/client/field.rb, line 9
def all
  @all_fields ||= file_cache.fetch("all") do
    resource.all
  end
end
epic_name() click to toggle source
# File lib/terjira/client/field.rb, line 23
def epic_name
  find_by_name('Epic Name')
end
file_cache() click to toggle source
# File lib/terjira/client/field.rb, line 35
def file_cache
  Terjira::FileCache.new(CACHE_PATH, 60 * 60 * 24)
end
find_by_key(key) click to toggle source
# File lib/terjira/client/field.rb, line 15
def find_by_key(key)
  all.find { |field| field.key == key }
end
find_by_name(name) click to toggle source
# File lib/terjira/client/field.rb, line 19
def find_by_name(name)
  all.find { |field| field.name == name }
end
story_points() click to toggle source
# File lib/terjira/client/field.rb, line 31
def story_points
  find_by_name('Story Points')
end