doc/Helpers.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>module Helpers - RDoc Documentation</title>
<script type="text/javascript">
var rdoc_rel_prefix = "./";
var index_rel_prefix = "./";
</script>
<script src="./js/navigation.js" defer></script>
<script src="./js/search.js" defer></script>
<script src="./js/search_index.js" defer></script>
<script src="./js/searcher.js" defer></script>
<script src="./js/darkfish.js" defer></script>
<link href="./css/fonts.css" rel="stylesheet">
<link href="./css/rdoc.css" rel="stylesheet">
<body id="top" role="document" class="module">
<nav role="navigation">
<div id="project-navigation">
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
<h2>
<a href="./index.html" rel="home">Home</a>
</h2>
<div id="table-of-contents-navigation">
<a href="./table_of_contents.html#pages">Pages</a>
<a href="./table_of_contents.html#classes">Classes</a>
<a href="./table_of_contents.html#methods">Methods</a>
</div>
</div>
<div id="search-section" role="search" class="project-section initially-hidden">
<form action="#" method="get" accept-charset="utf-8">
<div id="search-field-wrapper">
<input id="search-field" role="combobox" aria-label="Search"
aria-autocomplete="list" aria-controls="search-results"
type="text" name="search" placeholder="Search" spellcheck="false"
title="Type to search, Up and Down to navigate, Enter to load">
</div>
<ul id="search-results" aria-label="Search Results"
aria-busy="false" aria-expanded="false"
aria-atomic="false" class="initially-hidden"></ul>
</form>
</div>
</div>
<div id="class-metadata">
<!-- Method Quickref -->
<div id="method-list-section" class="nav-section">
<h3>Methods</h3>
<ul class="link-list" role="directory">
<li ><a href="#method-i-actions_details">#actions_details</a>
<li ><a href="#method-i-actions_payload">#actions_payload</a>
<li ><a href="#method-i-attachments_details">#attachments_details</a>
<li ><a href="#method-i-attachments_payload">#attachments_payload</a>
<li ><a href="#method-i-boards_details">#boards_details</a>
<li ><a href="#method-i-boards_payload">#boards_payload</a>
<li ><a href="#method-i-card_payload">#card_payload</a>
<li ><a href="#method-i-cards_details">#cards_details</a>
<li ><a href="#method-i-cards_payload">#cards_payload</a>
<li ><a href="#method-i-checklists_details">#checklists_details</a>
<li ><a href="#method-i-checklists_payload">#checklists_payload</a>
<li ><a href="#method-i-copied_checklists_details">#copied_checklists_details</a>
<li ><a href="#method-i-copied_checklists_payload">#copied_checklists_payload</a>
<li ><a href="#method-i-custom_field_item_details">#custom_field_item_details</a>
<li ><a href="#method-i-custom_field_items_payload">#custom_field_items_payload</a>
<li ><a href="#method-i-custom_field_option_details">#custom_field_option_details</a>
<li ><a href="#method-i-custom_fields_details">#custom_fields_details</a>
<li ><a href="#method-i-custom_fields_payload">#custom_fields_payload</a>
<li ><a href="#method-i-label_details">#label_details</a>
<li ><a href="#method-i-label_name_details">#label_name_details</a>
<li ><a href="#method-i-label_name_payload">#label_name_payload</a>
<li ><a href="#method-i-label_options">#label_options</a>
<li ><a href="#method-i-label_payload">#label_payload</a>
<li ><a href="#method-i-lists_details">#lists_details</a>
<li ><a href="#method-i-lists_payload">#lists_payload</a>
<li ><a href="#method-i-notification_details">#notification_details</a>
<li ><a href="#method-i-notification_payload">#notification_payload</a>
<li ><a href="#method-i-organization_details">#organization_details</a>
<li ><a href="#method-i-organization_payload">#organization_payload</a>
<li ><a href="#method-i-orgs_details">#orgs_details</a>
<li ><a href="#method-i-orgs_payload">#orgs_payload</a>
<li ><a href="#method-i-plugin_data_details">#plugin_data_details</a>
<li ><a href="#method-i-plugin_data_payload">#plugin_data_payload</a>
<li ><a href="#method-i-token_details">#token_details</a>
<li ><a href="#method-i-token_payload">#token_payload</a>
<li ><a href="#method-i-user_details">#user_details</a>
<li ><a href="#method-i-user_payload">#user_payload</a>
<li ><a href="#method-i-webhook_payload">#webhook_payload</a>
<li ><a href="#method-i-webhooks_details">#webhooks_details</a>
<li ><a href="#method-i-webhooks_payload">#webhooks_payload</a>
</ul>
</div>
</div>
</nav>
<main role="main" aria-labelledby="module-Helpers">
<h1 id="module-Helpers" class="module">
module Helpers
</h1>
<section class="description">
</section>
<section id="5Buntitled-5D" class="documentation-section">
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
<header>
<h3>Public Instance Methods</h3>
</header>
<div id="method-i-actions_details" class="method-detail ">
<div class="method-heading">
<span class="method-name">actions_details</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="actions_details-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 312</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">actions_details</span>
[{
<span class="ruby-string">'id'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'4ee2482134a81a757a08af47'</span>,
<span class="ruby-string">'idMemberCreator'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abcdef123456789123456789'</span>,
<span class="ruby-string">'data'</span> <span class="ruby-operator">=></span> {
<span class="ruby-string">'card'</span> <span class="ruby-operator">=></span> {
<span class="ruby-string">'id'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'4ee2482134a81a757a08af45'</span>,
<span class="ruby-string">'name'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'Bytecode outputter'</span>
},
<span class="ruby-string">'board'</span> <span class="ruby-operator">=></span> {
<span class="ruby-string">'id'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'4ec54f2f73820a0dea0d1f0e'</span>,
<span class="ruby-string">'name'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'Caribou VM'</span>
},
<span class="ruby-string">'list'</span> <span class="ruby-operator">=></span> {
<span class="ruby-string">'id'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'4ee238b034a81a757a05cda0'</span>,
<span class="ruby-string">'name'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'Assembler'</span>
}
},
<span class="ruby-string">'date'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'2012-02-10T11:32:17Z'</span>,
<span class="ruby-string">'type'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'createCard'</span>
}]
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-actions_payload" class="method-detail ">
<div class="method-heading">
<span class="method-name">actions_payload</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="actions_payload-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 335</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">actions_payload</span>
<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">generate</span>(<span class="ruby-identifier">actions_details</span>)
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-attachments_details" class="method-detail ">
<div class="method-heading">
<span class="method-name">attachments_details</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="attachments_details-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 243</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">attachments_details</span>
[{
<span class="ruby-string">'id'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abcdef123456789123456789'</span>,
<span class="ruby-string">'name'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'attachment1.png'</span>,
<span class="ruby-string">'url'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'http://trello-assets.domain.tld/attachment1.png'</span>,
<span class="ruby-string">'bytes'</span> <span class="ruby-operator">=></span> <span class="ruby-value">98765</span>,
<span class="ruby-string">'idMember'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abcdef123456789123456781'</span>,
<span class="ruby-string">'isUpload'</span> <span class="ruby-operator">=></span> <span class="ruby-keyword">false</span>,
<span class="ruby-string">'date'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'2013-02-28T17:12:28.497Z'</span>,
<span class="ruby-string">'previews'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'previews'</span>
},
{
<span class="ruby-string">'id'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abcdef123456789123456781'</span>,
<span class="ruby-string">'name'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'attachment2.png'</span>,
<span class="ruby-string">'url'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'http://trello-assets.domain.tld/attachment2.png'</span>,
<span class="ruby-string">'bytes'</span> <span class="ruby-operator">=></span> <span class="ruby-value">89123</span>,
<span class="ruby-string">'idMember'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abcdef123456789123456782'</span>,
<span class="ruby-string">'isUpload'</span> <span class="ruby-operator">=></span> <span class="ruby-keyword">true</span>,
<span class="ruby-string">'date'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'2013-03-01T14:01:25.212Z'</span>,
}]
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-attachments_payload" class="method-detail ">
<div class="method-heading">
<span class="method-name">attachments_payload</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="attachments_payload-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 265</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">attachments_payload</span>
<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">generate</span>(<span class="ruby-identifier">attachments_details</span>)
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-boards_details" class="method-detail ">
<div class="method-heading">
<span class="method-name">boards_details</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="boards_details-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 111</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">boards_details</span>
[{
<span class="ruby-string">'id'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abcdef123456789123456789'</span>,
<span class="ruby-string">'name'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'Test'</span>,
<span class="ruby-string">'desc'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'This is a test board'</span>,
<span class="ruby-string">'closed'</span> <span class="ruby-operator">=></span> <span class="ruby-keyword">false</span>,
<span class="ruby-string">'starred'</span> <span class="ruby-operator">=></span> <span class="ruby-keyword">false</span>,
<span class="ruby-string">'idOrganization'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abcdef123456789123456789'</span>,
<span class="ruby-string">'url'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'https://trello.com/board/test/abcdef123456789123456789'</span>,
<span class="ruby-string">'dateLastActivity'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'2012-12-08T18:40:24.314Z'</span>
},
{
<span class="ruby-value">name:</span> <span class="ruby-string">'Test'</span>,
<span class="ruby-value">desc:</span> <span class="ruby-string">'This is a test board'</span>,
<span class="ruby-value">closed:</span> <span class="ruby-keyword">false</span>,
<span class="ruby-value">starred:</span> <span class="ruby-keyword">false</span>,
<span class="ruby-value">organization_id:</span> <span class="ruby-string">'abcdef123456789123456789'</span>
}]
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-boards_payload" class="method-detail ">
<div class="method-heading">
<span class="method-name">boards_payload</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="boards_payload-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 131</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">boards_payload</span>
<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">generate</span>(<span class="ruby-identifier">boards_details</span>)
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-card_payload" class="method-detail ">
<div class="method-heading">
<span class="method-name">card_payload</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="card_payload-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 294</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">card_payload</span>
<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">generate</span>(<span class="ruby-identifier">cards_details</span>.<span class="ruby-identifier">first</span>)
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-cards_details" class="method-detail ">
<div class="method-heading">
<span class="method-name">cards_details</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="cards_details-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 201</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">cards_details</span>
[{
<span class="ruby-string">'id'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abcdef123456789123456789'</span>,
<span class="ruby-string">'idShort'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'1'</span>,
<span class="ruby-string">'name'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'Do something awesome'</span>,
<span class="ruby-string">'desc'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'Awesome things are awesome.'</span>,
<span class="ruby-string">'closed'</span> <span class="ruby-operator">=></span> <span class="ruby-keyword">false</span>,
<span class="ruby-string">'idList'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abcdef123456789123456789'</span>,
<span class="ruby-string">'idBoard'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abcdef123456789123456789'</span>,
<span class="ruby-string">'idAttachmentCover'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abcdef123456789123456789'</span>,
<span class="ruby-string">'idMembers'</span> <span class="ruby-operator">=></span> [<span class="ruby-string">'abcdef123456789123456789'</span>],
<span class="ruby-string">'labels'</span> <span class="ruby-operator">=></span> <span class="ruby-identifier">label_details</span>,
<span class="ruby-string">'idLabels'</span> <span class="ruby-operator">=></span> [ <span class="ruby-string">'abcdef123456789123456789'</span>,
<span class="ruby-string">'bbcdef123456789123456789'</span>,
<span class="ruby-string">'cbcdef123456789123456789'</span>,
<span class="ruby-string">'dbcdef123456789123456789'</span> ],
<span class="ruby-string">'url'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'https://trello.com/card/board/specify-the-type-and-scope-of-the-jit-in-a-lightweight-spec/abcdef123456789123456789/abcdef123456789123456789'</span>,
<span class="ruby-string">'shortUrl'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'https://trello.com/c/abcdef12'</span>,
<span class="ruby-string">'pos'</span> <span class="ruby-operator">=></span> <span class="ruby-value">12</span>,
<span class="ruby-string">'dateLastActivity'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'2012-12-07T18:40:24.314Z'</span>
},
{
<span class="ruby-value">name:</span> <span class="ruby-string">'Do something awesome'</span>,
<span class="ruby-value">list_id:</span> <span class="ruby-string">'abcdef123456789123456789'</span>,
<span class="ruby-value">desc:</span> <span class="ruby-string">'Awesome things are awesome.'</span>,
<span class="ruby-value">member_ids:</span> [<span class="ruby-string">'abcdef123456789123456789'</span>],
<span class="ruby-value">card_labels:</span> [ <span class="ruby-string">'abcdef123456789123456789'</span>,
<span class="ruby-string">'bbcdef123456789123456789'</span>,
<span class="ruby-string">'cbcdef123456789123456789'</span>,
<span class="ruby-string">'dbcdef123456789123456789'</span> ],
<span class="ruby-value">due:</span> <span class="ruby-constant">Date</span>.<span class="ruby-identifier">today</span>,
<span class="ruby-value">pos:</span> <span class="ruby-value">12</span>,
<span class="ruby-value">source_card_id:</span> <span class="ruby-string">'abcdef1234567891234567890'</span>,
<span class="ruby-value">source_card_properties:</span> <span class="ruby-string">'checklist,members'</span>
}]
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-cards_payload" class="method-detail ">
<div class="method-heading">
<span class="method-name">cards_payload</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="cards_payload-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 239</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">cards_payload</span>
<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">generate</span>(<span class="ruby-identifier">cards_details</span>)
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-checklists_details" class="method-detail ">
<div class="method-heading">
<span class="method-name">checklists_details</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="checklists_details-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 135</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">checklists_details</span>
[{
<span class="ruby-string">'id'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abcdef123456789123456789'</span>,
<span class="ruby-string">'name'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'Test Checklist'</span>,
<span class="ruby-string">'desc'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'A marvelous little checklist'</span>,
<span class="ruby-string">'closed'</span> <span class="ruby-operator">=></span> <span class="ruby-keyword">false</span>,
<span class="ruby-string">'pos'</span> <span class="ruby-operator">=></span> <span class="ruby-value">16384</span>,
<span class="ruby-string">'url'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'https://trello.com/blah/blah'</span>,
<span class="ruby-string">'idBoard'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abcdef123456789123456789'</span>,
<span class="ruby-string">'idCard'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abccardid'</span>,
<span class="ruby-string">'idList'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abcdef123456789123456789'</span>,
<span class="ruby-string">'idMembers'</span> <span class="ruby-operator">=></span> [<span class="ruby-string">'abcdef123456789123456789'</span>],
<span class="ruby-string">'checkItems'</span> <span class="ruby-operator">=></span> { <span class="ruby-string">'id'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'ghijk987654321'</span> }
},
{
<span class="ruby-value">name:</span> <span class="ruby-string">'A marvelous little checklist'</span>,
<span class="ruby-value">card_id:</span> <span class="ruby-string">'abccardid'</span>
}]
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-checklists_payload" class="method-detail ">
<div class="method-heading">
<span class="method-name">checklists_payload</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="checklists_payload-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 155</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">checklists_payload</span>
<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">generate</span>(<span class="ruby-identifier">checklists_details</span>)
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-copied_checklists_details" class="method-detail ">
<div class="method-heading">
<span class="method-name">copied_checklists_details</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="copied_checklists_details-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 159</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">copied_checklists_details</span>
[{
<span class="ruby-string">'id'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'uvwxyz987654321987654321'</span>,
<span class="ruby-string">'name'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'Test Checklist'</span>,
<span class="ruby-string">'desc'</span> <span class="ruby-operator">=></span> <span class="ruby-string">''</span>,
<span class="ruby-string">'closed'</span> <span class="ruby-operator">=></span> <span class="ruby-keyword">nil</span>,
<span class="ruby-string">'position'</span> <span class="ruby-operator">=></span> <span class="ruby-value">99999</span>,
<span class="ruby-string">'url'</span> <span class="ruby-operator">=></span> <span class="ruby-keyword">nil</span>,
<span class="ruby-string">'idBoard'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abcdef123456789123456789'</span>,
<span class="ruby-string">'idList'</span> <span class="ruby-operator">=></span> <span class="ruby-keyword">nil</span>,
<span class="ruby-string">'idMembers'</span> <span class="ruby-operator">=></span> <span class="ruby-keyword">nil</span>,
<span class="ruby-string">'checkItems'</span> <span class="ruby-operator">=></span> []
}]
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-copied_checklists_payload" class="method-detail ">
<div class="method-heading">
<span class="method-name">copied_checklists_payload</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="copied_checklists_payload-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 174</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">copied_checklists_payload</span>
<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">generate</span>(<span class="ruby-identifier">copied_checklists_details</span>)
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-custom_field_item_details" class="method-detail ">
<div class="method-heading">
<span class="method-name">custom_field_item_details</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="custom_field_item_details-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 495</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">custom_field_item_details</span>
{
<span class="ruby-string">'id'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abcdefg1234567'</span>,
<span class="ruby-string">'value'</span> <span class="ruby-operator">=></span> { <span class="ruby-string">'text'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'hello world'</span> },
<span class="ruby-string">'idModel'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abcdef123456789123456789'</span>,
<span class="ruby-string">'idCustomField'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abcdef123456789123456789'</span>,
<span class="ruby-string">'modelType'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'card'</span>
}
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-custom_field_items_payload" class="method-detail ">
<div class="method-heading">
<span class="method-name">custom_field_items_payload</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="custom_field_items_payload-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 505</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">custom_field_items_payload</span>
<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">generate</span>(<span class="ruby-identifier">custom_field_item_details</span>)
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-custom_field_option_details" class="method-detail ">
<div class="method-heading">
<span class="method-name">custom_field_option_details</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="custom_field_option_details-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 486</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">custom_field_option_details</span>
{
<span class="ruby-string">'_id'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abcdefgh12345678'</span>,
<span class="ruby-string">'value'</span> <span class="ruby-operator">=></span> {<span class="ruby-string">'text'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'Low Priority'</span>},
<span class="ruby-string">'color'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'green'</span>,
<span class="ruby-string">'pos'</span> <span class="ruby-operator">=></span> <span class="ruby-value">1</span>
}
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-custom_fields_details" class="method-detail ">
<div class="method-heading">
<span class="method-name">custom_fields_details</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="custom_fields_details-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 461</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">custom_fields_details</span>
[
{
<span class="ruby-string">'id'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abcdef123456789123456789'</span>,
<span class="ruby-string">'name'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'Priority'</span>,
<span class="ruby-string">'idModel'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abc123'</span>,
<span class="ruby-string">'type'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'checkbox'</span>,
<span class="ruby-string">'pos'</span> <span class="ruby-operator">=></span> <span class="ruby-value">123</span>,
<span class="ruby-string">'modelType'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'board'</span>
},
{
<span class="ruby-value">id:</span> <span class="ruby-string">'abcdef123456789123456789'</span>,
<span class="ruby-value">name:</span> <span class="ruby-string">'Priority'</span>,
<span class="ruby-value">model_id:</span> <span class="ruby-string">'abc123'</span>,
<span class="ruby-value">type:</span> <span class="ruby-string">'checkbox'</span>,
<span class="ruby-value">pos:</span> <span class="ruby-value">123</span>,
<span class="ruby-value">model_type:</span> <span class="ruby-string">'board'</span>
}
]
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-custom_fields_payload" class="method-detail ">
<div class="method-heading">
<span class="method-name">custom_fields_payload</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="custom_fields_payload-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 482</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">custom_fields_payload</span>
<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">generate</span>(<span class="ruby-identifier">custom_fields_details</span>.<span class="ruby-identifier">first</span>)
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-label_details" class="method-detail ">
<div class="method-heading">
<span class="method-name">label_details</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="label_details-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 408</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">label_details</span>
[
{<span class="ruby-string">'color'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'yellow'</span>, <span class="ruby-string">'name'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'iOS'</span>, <span class="ruby-string">'id'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abcdef123456789123456789'</span>, <span class="ruby-string">'uses'</span> <span class="ruby-operator">=></span> <span class="ruby-value">3</span>, <span class="ruby-string">'idBoard'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abcdef123456789123456789'</span>},
{<span class="ruby-string">'color'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'purple'</span>, <span class="ruby-string">'name'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'Issue or bug'</span>, <span class="ruby-string">'id'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'bbcdef123456789123456789'</span>, <span class="ruby-string">'uses'</span> <span class="ruby-operator">=></span> <span class="ruby-value">1</span>, <span class="ruby-string">'idBoard'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abcdef123456789123456789'</span>},
{<span class="ruby-string">'color'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'red'</span>, <span class="ruby-string">'name'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'deploy'</span>, <span class="ruby-string">'id'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'cbcdef123456789123456789'</span>, <span class="ruby-string">'uses'</span> <span class="ruby-operator">=></span> <span class="ruby-value">2</span>, <span class="ruby-string">'idBoard'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abcdef123456789123456789'</span>},
{<span class="ruby-string">'color'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'blue'</span>, <span class="ruby-string">'name'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'on hold'</span>, <span class="ruby-string">'id'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'dbcdef123456789123456789'</span>, <span class="ruby-string">'uses'</span> <span class="ruby-operator">=></span> <span class="ruby-value">6</span>, <span class="ruby-string">'idBoard'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abcdef123456789123456789'</span>}
]
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-label_name_details" class="method-detail ">
<div class="method-heading">
<span class="method-name">label_name_details</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="label_name_details-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 446</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">label_name_details</span>
[
{<span class="ruby-string">'yellow'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'bug'</span>},
{<span class="ruby-string">'red'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'urgent'</span>},
{<span class="ruby-string">'green'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'deploy'</span>},
{<span class="ruby-string">'blue'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'on hold'</span>},
{<span class="ruby-string">'orange'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'new feature'</span>},
{<span class="ruby-string">'purple'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'experimental'</span>}
]
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-label_name_payload" class="method-detail ">
<div class="method-heading">
<span class="method-name">label_name_payload</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="label_name_payload-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 457</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">label_name_payload</span>
<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">generate</span>(<span class="ruby-identifier">label_name_details</span>)
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-label_options" class="method-detail ">
<div class="method-heading">
<span class="method-name">label_options</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="label_options-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 417</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">label_options</span>
{
<span class="ruby-value">name:</span> <span class="ruby-string">'iOS'</span>,
<span class="ruby-value">board_id:</span> <span class="ruby-string">'abcdef123456789123456789'</span>,
<span class="ruby-value">color:</span> <span class="ruby-string">'yellow'</span>
}
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-label_payload" class="method-detail ">
<div class="method-heading">
<span class="method-name">label_payload</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="label_payload-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 425</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">label_payload</span>
<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">generate</span>(<span class="ruby-identifier">label_details</span>)
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-lists_details" class="method-detail ">
<div class="method-heading">
<span class="method-name">lists_details</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="lists_details-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 178</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">lists_details</span>
[{
<span class="ruby-string">'id'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abcdef123456789123456789'</span>,
<span class="ruby-string">'name'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'To Do'</span>,
<span class="ruby-string">'closed'</span> <span class="ruby-operator">=></span> <span class="ruby-keyword">false</span>,
<span class="ruby-string">'idBoard'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abcdef123456789123456789'</span>,
<span class="ruby-string">'idListSource'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abcdef123456789123456780'</span>,
<span class="ruby-string">'cards'</span> <span class="ruby-operator">=></span> <span class="ruby-identifier">cards_details</span>,
<span class="ruby-string">'pos'</span> <span class="ruby-operator">=></span> <span class="ruby-value">12</span>
},
{
<span class="ruby-value">name:</span> <span class="ruby-string">'To Do'</span>,
<span class="ruby-value">board_id:</span> <span class="ruby-string">'abcdef123456789123456789'</span>,
<span class="ruby-value">pos:</span> <span class="ruby-value">12</span>,
<span class="ruby-value">source_list_id:</span> <span class="ruby-string">'abcdef123456789123456780'</span>
}
]
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-lists_payload" class="method-detail ">
<div class="method-heading">
<span class="method-name">lists_payload</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="lists_payload-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 197</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">lists_payload</span>
<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">generate</span>(<span class="ruby-identifier">lists_details</span>)
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-notification_details" class="method-detail ">
<div class="method-heading">
<span class="method-name">notification_details</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="notification_details-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 339</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">notification_details</span>
{
<span class="ruby-string">'id'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'4f30d084d5b0f7ab453bee51'</span>,
<span class="ruby-string">'unread'</span> <span class="ruby-operator">=></span> <span class="ruby-keyword">false</span>,
<span class="ruby-string">'type'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'commentCard'</span>,
<span class="ruby-string">'date'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'2012-02-07T07:19:32.393Z'</span>,
<span class="ruby-string">'data'</span> <span class="ruby-operator">=></span> {
<span class="ruby-string">'board'</span> <span class="ruby-operator">=></span> {
<span class="ruby-string">'id'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abcdef123456789123456789'</span>,
<span class="ruby-string">'name'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'Test'</span>
},
<span class="ruby-string">'card'</span> <span class="ruby-operator">=></span>{
<span class="ruby-string">'id'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abcdef123456789123456789'</span>,
<span class="ruby-string">'name'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'Do something awesome'</span>
},
<span class="ruby-string">'text'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'test'</span>
},
<span class="ruby-string">'idMemberCreator'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abcdef123456789012345678'</span>
}
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-notification_payload" class="method-detail ">
<div class="method-heading">
<span class="method-name">notification_payload</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="notification_payload-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 360</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">notification_payload</span>
<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">generate</span>(<span class="ruby-identifier">notification_details</span>)
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-organization_details" class="method-detail ">
<div class="method-heading">
<span class="method-name">organization_details</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="organization_details-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 364</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">organization_details</span>
{
<span class="ruby-string">'id'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'4ee7e59ae582acdec8000291'</span>,
<span class="ruby-string">'name'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'publicorg'</span>,
<span class="ruby-string">'desc'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'This is a test organization'</span>
}
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-organization_payload" class="method-detail ">
<div class="method-heading">
<span class="method-name">organization_payload</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="organization_payload-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 372</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">organization_payload</span>
<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">generate</span>(<span class="ruby-identifier">organization_details</span>)
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-orgs_details" class="method-detail ">
<div class="method-heading">
<span class="method-name">orgs_details</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="orgs_details-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 298</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">orgs_details</span>
[{
<span class="ruby-string">'id'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abcdef123456789123456789'</span>,
<span class="ruby-string">'name'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'test'</span>,
<span class="ruby-string">'displayName'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'Test Organization'</span>,
<span class="ruby-string">'desc'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'This is a test organization'</span>,
<span class="ruby-string">'url'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'https://trello.com/test'</span>
}]
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-orgs_payload" class="method-detail ">
<div class="method-heading">
<span class="method-name">orgs_payload</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="orgs_payload-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 308</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">orgs_payload</span>
<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">generate</span>(<span class="ruby-identifier">orgs_details</span>)
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-plugin_data_details" class="method-detail ">
<div class="method-heading">
<span class="method-name">plugin_data_details</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="plugin_data_details-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 269</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">plugin_data_details</span>
[
{
<span class="ruby-string">"id"</span><span class="ruby-operator">=></span><span class="ruby-string">"abcdef123456789123456779"</span>,
<span class="ruby-string">"idPlugin"</span><span class="ruby-operator">=></span><span class="ruby-string">"abcdef123456789123456879"</span>,
<span class="ruby-string">"scope"</span><span class="ruby-operator">=></span><span class="ruby-string">"card"</span>,
<span class="ruby-string">"idModel"</span><span class="ruby-operator">=></span><span class="ruby-string">"abcdef123456789123446879"</span>,
<span class="ruby-string">"value"</span><span class="ruby-operator">=></span><span class="ruby-string">"{\"fields\":{\"plugin_key\":\"plugin_value\"}}"</span>,
<span class="ruby-string">"access"</span><span class="ruby-operator">=></span><span class="ruby-string">"shared"</span>
},
{
<span class="ruby-string">"id"</span><span class="ruby-operator">=></span><span class="ruby-string">"abcdef123456789123456879"</span>,
<span class="ruby-string">"idPlugin"</span><span class="ruby-operator">=></span><span class="ruby-string">"abcdef123456789123456779"</span>,
<span class="ruby-string">"scope"</span><span class="ruby-operator">=></span><span class="ruby-string">"card"</span>,
<span class="ruby-string">"idModel"</span><span class="ruby-operator">=></span><span class="ruby-string">"abcdef123456789123446579"</span>,
<span class="ruby-string">"value"</span><span class="ruby-operator">=></span><span class="ruby-string">"{\"fields\":{\"plugin_key\":\"plugin_value\"}}"</span>,
<span class="ruby-string">"access"</span><span class="ruby-operator">=></span><span class="ruby-string">"shared"</span>
}
]
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-plugin_data_payload" class="method-detail ">
<div class="method-heading">
<span class="method-name">plugin_data_payload</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="plugin_data_payload-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 290</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">plugin_data_payload</span>
<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">generate</span>(<span class="ruby-identifier">plugin_data_details</span>)
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-token_details" class="method-detail ">
<div class="method-heading">
<span class="method-name">token_details</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="token_details-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 376</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">token_details</span>
{
<span class="ruby-string">'id'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'4f2c10c7b3eb95a45b294cd5'</span>,
<span class="ruby-string">'idMember'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abcdef123456789123456789'</span>,
<span class="ruby-string">'dateCreated'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'2012-02-03T16:52:23.661Z'</span>,
<span class="ruby-string">'permissions'</span> <span class="ruby-operator">=></span> [
{
<span class="ruby-string">'idModel'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'me'</span>,
<span class="ruby-string">'modelType'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'Member'</span>,
<span class="ruby-string">'read'</span> <span class="ruby-operator">=></span> <span class="ruby-keyword">true</span>,
<span class="ruby-string">'write'</span> <span class="ruby-operator">=></span> <span class="ruby-keyword">true</span>
},
{
<span class="ruby-string">'idModel'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'*'</span>,
<span class="ruby-string">'modelType'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'Board'</span>,
<span class="ruby-string">'read'</span> <span class="ruby-operator">=></span> <span class="ruby-keyword">true</span>,
<span class="ruby-string">'write'</span> <span class="ruby-operator">=></span> <span class="ruby-keyword">true</span>
},
{
<span class="ruby-string">'idModel'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'*'</span>,
<span class="ruby-string">'modelType'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'Organization'</span>,
<span class="ruby-string">'read'</span> <span class="ruby-operator">=></span> <span class="ruby-keyword">true</span>,
<span class="ruby-string">'write'</span> <span class="ruby-operator">=></span> <span class="ruby-keyword">true</span>
}
]
}
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-token_payload" class="method-detail ">
<div class="method-heading">
<span class="method-name">token_payload</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="token_payload-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 404</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">token_payload</span>
<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">generate</span>(<span class="ruby-identifier">token_details</span>)
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-user_details" class="method-detail ">
<div class="method-heading">
<span class="method-name">user_details</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="user_details-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 94</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">user_details</span>
{
<span class="ruby-string">'id'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abcdef123456789012345678'</span>,
<span class="ruby-string">'fullName'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'Test User'</span>,
<span class="ruby-string">'username'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'me'</span>,
<span class="ruby-string">'intials'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'TU'</span>,
<span class="ruby-string">'avatarHash'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'abcdef1234567890abcdef1234567890'</span>,
<span class="ruby-string">'bio'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'a rather dumb user'</span>,
<span class="ruby-string">'url'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'https://trello.com/me'</span>,
<span class="ruby-string">'email'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'johnsmith@example.com'</span>
}
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-user_payload" class="method-detail ">
<div class="method-heading">
<span class="method-name">user_payload</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="user_payload-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 107</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">user_payload</span>
<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">generate</span>(<span class="ruby-identifier">user_details</span>)
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-webhook_payload" class="method-detail ">
<div class="method-heading">
<span class="method-name">webhook_payload</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="webhook_payload-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 513</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">webhook_payload</span>
<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">generate</span>(<span class="ruby-identifier">webhooks_details</span>.<span class="ruby-identifier">first</span>)
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-webhooks_details" class="method-detail ">
<div class="method-heading">
<span class="method-name">webhooks_details</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="webhooks_details-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 429</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">webhooks_details</span>
[
{
<span class="ruby-string">'id'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'webhookid'</span>,
<span class="ruby-string">'description'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'Test webhook'</span>,
<span class="ruby-string">'idModel'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'1234'</span>,
<span class="ruby-string">'callbackURL'</span> <span class="ruby-operator">=></span> <span class="ruby-string">'http://example.org/webhook'</span>,
<span class="ruby-string">'active'</span> <span class="ruby-operator">=></span> <span class="ruby-keyword">true</span>
},
{
<span class="ruby-value">description:</span> <span class="ruby-string">'Test webhook'</span>,
<span class="ruby-value">id_model:</span> <span class="ruby-string">'1234'</span>,
<span class="ruby-value">cakkback_url:</span> <span class="ruby-string">'http://example.org/webhook'</span>
}
]
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
<div id="method-i-webhooks_payload" class="method-detail ">
<div class="method-heading">
<span class="method-name">webhooks_payload</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="webhooks_payload-source">
<pre><span class="ruby-comment"># File spec/spec_helper.rb, line 509</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">webhooks_payload</span>
<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">generate</span>(<span class="ruby-identifier">webhooks_details</span>)
<span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
</section>
</section>
</main>
<footer id="validator-badges" role="contentinfo">
<p><a href="https://validator.w3.org/check/referer">Validate</a>
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.1.2.
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
</footer>