Class: Terjira::Client::Board

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

Constant Summary

Constants inherited from Base

Terjira::Client::Base::AGILE_API_PATH, Terjira::Client::Base::DEFAULT_API_PATH, Terjira::Client::Base::DEFAULT_CACHE_SEC

Constants included from JQLQueryBuilder

JQLQueryBuilder::JQL_KEYS

Constants included from AuthOptionBuilder

AuthOptionBuilder::AUTH_CACHE_KEY

Class Method Summary collapse

Methods inherited from Base

cache, class_name, client, parse_body, resource, username

Methods included from JQLQueryBuilder

#build_jql_query

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

.all(options = {}) ⇒ Object



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

def all(options = {})
  params = options.slice(:type)
  resp = agile_api_get("board", params)
  resp["values"].map { |value| build(value) }
end

.find(board_id) ⇒ Object



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

def find(board_id)
  resp = agile_api_get("board/#{board_id}")
  self.build(resp)
end