Class: Terjira::Client::StatusCategory

Inherits:
Base
  • Object
show all
Defined in:
lib/terjira/client/status_category.rb

Constant Summary

Constants inherited from Base

Base::AGILE_API_PATH, Base::DEFAULT_API_PATH, Base::DEFAULT_CACHE_SEC

Constants included from JQLBuilder

JQLBuilder::SEARCH_KEYS, JQLBuilder::STRICT_KEYS

Constants included from AuthOptionBuilder

AuthOptionBuilder::AUTH_CACHE_KEY

Class Method Summary collapse

Methods inherited from Base

cache, class_name, client, parse_body, resource, site_url, username

Methods included from JQLBuilder

#build_jql

Methods included from AuthOptionBuilder

#auth_file_cache, #build_auth_options, #build_auth_options_by_cached, #build_auth_options_by_tty, #expire_auth_options

Class Method Details

.allObject



7
8
9
10
11
12
# File 'lib/terjira/client/status_category.rb', line 7

def all
  @all_statuscategory ||= file_cache.fetch("all") do
    resp = api_get "statuscategory"
    resp.map { |category| build(category) }
  end
end

.file_cacheObject



14
15
16
# File 'lib/terjira/client/status_category.rb', line 14

def file_cache
  Terjira::FileCache.new("resource/statuscategory", 60 * 60 * 48)
end