trellohub 0.0.1 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,58 +0,0 @@
1
- require 'trellohub/board'
2
-
3
- module Trellohub
4
- module Cards
5
- def valid_attributes
6
- %i(
7
- id
8
- checkItemStates
9
- closed
10
- dateLastActivity
11
- desc
12
- descData
13
- idBoard
14
- idList
15
- idMembersVoted
16
- idShort
17
- idAttachmentCover
18
- name
19
- pos
20
- shortLink
21
- badges
22
- due
23
- idChecklists
24
- idMembers
25
- labels
26
- shortUrl
27
- subscribed
28
- )
29
- end
30
-
31
- def other_attributes
32
- %i(
33
- key
34
- repository
35
- list_name
36
- members
37
- milestore
38
- issue
39
- )
40
- end
41
-
42
- def all_attributes
43
- self.valid_attributes + self.other_attributes
44
- end
45
-
46
- def all
47
- @all || self.all!
48
- end
49
-
50
- def all!
51
- @all = Trell.cards(Trellohub::Board.id)
52
- end
53
-
54
- def all_clear
55
- self.all.each { |card| Trell.delete_card(card.id) }
56
- end
57
- end
58
- end
@@ -1,17 +0,0 @@
1
- require 'trellohub/board'
2
-
3
- module Trellohub
4
- module Lists
5
- def all
6
- @all || self.all!
7
- end
8
-
9
- def all!
10
- @all = Trell.lists(Trellohub::Board.id)
11
- end
12
-
13
- def find_by(name: nil)
14
- self.all.find { |list| list.name == name }
15
- end
16
- end
17
- end