wcc-jtj-client 0.1.1 → 0.1.3
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/wcc/jtj/client/schemas/entry.rb +14 -0
- data/lib/wcc/jtj/client/schemas/podcast.rb +17 -0
- data/lib/wcc/jtj/client/version.rb +1 -1
- data/lib/wcc/jtj/client.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7795d8a1071d3a9d2780377606c9095effec86502f1491e2977a8f2840cbd802
|
4
|
+
data.tar.gz: 66f74caed7a849519f2a5554e647c31bc38b5e75e5a4230b9ab2967ef11c3654
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4412d2f57f9f20228a4f7c1ba44cdcf02b4a66fa5b63b318aea5f1b001e2d2d53ef84f20ed9f29188cbb076f1e2906ca2c8bff91e486a949558af9fa270ed8ab
|
7
|
+
data.tar.gz: 8061439aa33429c2d4394448a7af8a8a5226758bf3359bfd99f88b6bcc9e89ada5fa8bd593c908ce21a9e7d82a2337ab9a7bca20dff29846797fcace2a2e51b9
|
@@ -40,6 +40,20 @@ module WCC::JTJ::Client::Schemas
|
|
40
40
|
end
|
41
41
|
end
|
42
42
|
|
43
|
+
def podcast
|
44
|
+
@podcast ||=
|
45
|
+
if raw['podcast']
|
46
|
+
WCC::JTJ::Client::Schemas::Podcast.new(raw['podcast'], client: @client)
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
def memory_verse
|
51
|
+
@memory_verse ||=
|
52
|
+
if raw['memory_verse']
|
53
|
+
WCC::JTJ::Client::Schemas::MemoryVerse.new(raw['memory_verse'], client: @client)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
43
57
|
def links
|
44
58
|
OpenStruct.new(raw['links']) if raw['links']
|
45
59
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative '../utils'
|
4
|
+
|
5
|
+
module WCC::JTJ::Client::Schemas
|
6
|
+
class Podcast < Base
|
7
|
+
define_camelcase_alias(
|
8
|
+
'promo_text'
|
9
|
+
) do |camelcase|
|
10
|
+
raw[camelcase]
|
11
|
+
end
|
12
|
+
|
13
|
+
def links
|
14
|
+
OpenStruct.new(raw['links']) if raw['links']
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/lib/wcc/jtj/client.rb
CHANGED
@@ -12,6 +12,7 @@ require_relative './client/schemas/curriculum_summary'
|
|
12
12
|
require_relative './client/schemas/entry_summary'
|
13
13
|
require_relative './client/schemas/entry'
|
14
14
|
require_relative './client/schemas/scripture'
|
15
|
+
require_relative './client/schemas/podcast'
|
15
16
|
require_relative './client/schemas/writer'
|
16
17
|
require_relative './client/schemas/memory_verse_summary'
|
17
18
|
require_relative './client/schemas/memory_verse'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wcc-jtj-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Watermark Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
11
|
+
date: 2022-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -52,6 +52,7 @@ files:
|
|
52
52
|
- lib/wcc/jtj/client/schemas/entry_summary.rb
|
53
53
|
- lib/wcc/jtj/client/schemas/memory_verse.rb
|
54
54
|
- lib/wcc/jtj/client/schemas/memory_verse_summary.rb
|
55
|
+
- lib/wcc/jtj/client/schemas/podcast.rb
|
55
56
|
- lib/wcc/jtj/client/schemas/schema_validation_error.rb
|
56
57
|
- lib/wcc/jtj/client/schemas/scripture.rb
|
57
58
|
- lib/wcc/jtj/client/schemas/writer.rb
|