Sha256: 3e7d16cf5fe33661b04692be4b73dfafd5f656ce7975925326f8bb7ec06ade25

Contents?: true

Size: 640 Bytes

Versions: 6

Compression:

Stored size: 640 Bytes

Contents

module Tr3llo
  module API
    module List
      extend self

      def find_all_by_board(board_id)
        JSON.parse(
          client.get(
            "/boards/#{board_id}/lists/",
            list: true,
            key: api_key,
            token: api_token
          ),
          symbolize_names: true
        )
      end

      private

      def client
        container.resolve(:api_client)
      end

      def api_key
        container.resolve(:configuration).api_key
      end

      def api_token
        container.resolve(:configuration).api_token
      end

      def container
        $container
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
3llo-0.1.12 lib/3llo/api/list.rb
3llo-0.1.11 lib/3llo/api/list.rb
3llo-0.1.10 lib/3llo/api/list.rb
3llo-0.1.9 lib/3llo/api/list.rb
3llo-0.1.9.beta lib/3llo/api/list.rb
3llo-0.1.8 lib/3llo/api/list.rb