rock_rms 4.11.0 → 4.12.1
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.
- checksums.yaml +4 -4
- data/lib/rock_rms/client.rb +3 -0
- data/lib/rock_rms/resources/block.rb +14 -0
- data/lib/rock_rms/resources/block_type.rb +14 -0
- data/lib/rock_rms/resources/page.rb +14 -0
- data/lib/rock_rms/response/block.rb +18 -0
- data/lib/rock_rms/response/block_type.rb +17 -0
- data/lib/rock_rms/response/page.rb +19 -0
- data/lib/rock_rms/version.rb +1 -1
- metadata +8 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 363ceb849a34e2f98f6285fbc5ea4bbaaef109aa
|
|
4
|
+
data.tar.gz: 88cec56237fac808dbeca8721ed13b0c312a3536
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1c1f6f6b180ee29dc5b0fe393e0f882133e40804eb760a7628fa1d1f3943fd56c27d9edd22fdbb19bde338fdf411ef0bc3259b5e0e02a967c3aed78d97bdbc7b
|
|
7
|
+
data.tar.gz: d1b6e942c8b974319d86750ea7807de8a169925d78763a389a71dfca12aa5b8b69bcee90de983750a904541fd09eca6cd8469b2667ce00ca5a2e0a63c02b561b
|
data/lib/rock_rms/client.rb
CHANGED
|
@@ -13,6 +13,8 @@ module RockRMS
|
|
|
13
13
|
include RockRMS::Client::Attribute
|
|
14
14
|
include RockRMS::Client::AttributeValue
|
|
15
15
|
include RockRMS::Client::Batch
|
|
16
|
+
include RockRMS::Client::Block
|
|
17
|
+
include RockRMS::Client::BlockType
|
|
16
18
|
include RockRMS::Client::Fund
|
|
17
19
|
include RockRMS::Client::Campus
|
|
18
20
|
include RockRMS::Client::DefinedType
|
|
@@ -20,6 +22,7 @@ module RockRMS
|
|
|
20
22
|
include RockRMS::Client::Gateway
|
|
21
23
|
include RockRMS::Client::Group
|
|
22
24
|
include RockRMS::Client::GroupMember
|
|
25
|
+
include RockRMS::Client::Page
|
|
23
26
|
include RockRMS::Client::PaymentDetail
|
|
24
27
|
include RockRMS::Client::Person
|
|
25
28
|
include RockRMS::Client::PhoneNumber
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module RockRMS
|
|
2
|
+
class Client
|
|
3
|
+
module BlockType
|
|
4
|
+
def list_block_types(options = {})
|
|
5
|
+
res = get(block_type_path, options)
|
|
6
|
+
Response::BlockType.format(res)
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
def block_type_path(id = nil)
|
|
10
|
+
id ? "BlockTypes/#{id}" : 'BlockTypes'
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module RockRMS
|
|
2
|
+
module Response
|
|
3
|
+
class Block < Base
|
|
4
|
+
MAP = {
|
|
5
|
+
id: 'Id',
|
|
6
|
+
name: 'Name',
|
|
7
|
+
block_type: 'BlockType',
|
|
8
|
+
page_id: 'PageId'
|
|
9
|
+
}.freeze
|
|
10
|
+
|
|
11
|
+
def format_single(data)
|
|
12
|
+
response = to_h(MAP, data)
|
|
13
|
+
response[:block_type] = BlockType.format(response[:block_type])
|
|
14
|
+
response
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module RockRMS
|
|
2
|
+
module Response
|
|
3
|
+
class BlockType < Base
|
|
4
|
+
MAP = {
|
|
5
|
+
id: 'Id',
|
|
6
|
+
name: 'Name',
|
|
7
|
+
description: 'Description',
|
|
8
|
+
category: 'Category',
|
|
9
|
+
path: 'Path'
|
|
10
|
+
}.freeze
|
|
11
|
+
|
|
12
|
+
def format_single(data)
|
|
13
|
+
to_h(MAP, data)
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module RockRMS
|
|
2
|
+
module Response
|
|
3
|
+
class Page < Base
|
|
4
|
+
MAP = {
|
|
5
|
+
id: 'Id',
|
|
6
|
+
name: 'InternalName',
|
|
7
|
+
page_title: 'PageTitle',
|
|
8
|
+
browser_title: 'BrowserTitle',
|
|
9
|
+
blocks: 'Blocks'
|
|
10
|
+
}.freeze
|
|
11
|
+
|
|
12
|
+
def format_single(data)
|
|
13
|
+
response = to_h(MAP, data)
|
|
14
|
+
response[:blocks] = Block.format(response[:blocks])
|
|
15
|
+
response
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
data/lib/rock_rms/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rock_rms
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.
|
|
4
|
+
version: 4.12.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Taylor Brooks
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-12-
|
|
11
|
+
date: 2018-12-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -188,6 +188,8 @@ files:
|
|
|
188
188
|
- lib/rock_rms/resources/attribute.rb
|
|
189
189
|
- lib/rock_rms/resources/attribute_value.rb
|
|
190
190
|
- lib/rock_rms/resources/batch.rb
|
|
191
|
+
- lib/rock_rms/resources/block.rb
|
|
192
|
+
- lib/rock_rms/resources/block_type.rb
|
|
191
193
|
- lib/rock_rms/resources/campus.rb
|
|
192
194
|
- lib/rock_rms/resources/defined_type.rb
|
|
193
195
|
- lib/rock_rms/resources/defined_value.rb
|
|
@@ -195,6 +197,7 @@ files:
|
|
|
195
197
|
- lib/rock_rms/resources/gateway.rb
|
|
196
198
|
- lib/rock_rms/resources/group.rb
|
|
197
199
|
- lib/rock_rms/resources/group_member.rb
|
|
200
|
+
- lib/rock_rms/resources/page.rb
|
|
198
201
|
- lib/rock_rms/resources/payment_detail.rb
|
|
199
202
|
- lib/rock_rms/resources/person.rb
|
|
200
203
|
- lib/rock_rms/resources/phone_number.rb
|
|
@@ -212,6 +215,8 @@ files:
|
|
|
212
215
|
- lib/rock_rms/response/attribute_value.rb
|
|
213
216
|
- lib/rock_rms/response/base.rb
|
|
214
217
|
- lib/rock_rms/response/batch.rb
|
|
218
|
+
- lib/rock_rms/response/block.rb
|
|
219
|
+
- lib/rock_rms/response/block_type.rb
|
|
215
220
|
- lib/rock_rms/response/campus.rb
|
|
216
221
|
- lib/rock_rms/response/defined_type.rb
|
|
217
222
|
- lib/rock_rms/response/defined_value.rb
|
|
@@ -220,6 +225,7 @@ files:
|
|
|
220
225
|
- lib/rock_rms/response/group.rb
|
|
221
226
|
- lib/rock_rms/response/group_location.rb
|
|
222
227
|
- lib/rock_rms/response/location.rb
|
|
228
|
+
- lib/rock_rms/response/page.rb
|
|
223
229
|
- lib/rock_rms/response/payment_detail.rb
|
|
224
230
|
- lib/rock_rms/response/person.rb
|
|
225
231
|
- lib/rock_rms/response/phone_number.rb
|