Sha256: af21339cb37c7733048771ca6a233bfca5f381e9bd77d9f0fe4afea8aab956d7
Contents?: true
Size: 533 Bytes
Versions: 14
Compression:
Stored size: 533 Bytes
Contents
module TrelloFlow class LocalConfig PATH = ".trello_flow" def initialize(store = nil) @store = store || ConfigStore.new(PATH) end def board @_board ||= Api::Board.find(board_id) end private attr_reader :store def board_id @_board_id ||= store[:board_id] || configure_board_id end def configure_board_id store.save :board_id, Table.pick(current_user.boards.active).id end def current_user Api::Member.current end end end
Version data entries
14 entries across 14 versions & 1 rubygems