cxf 0.0.8 → 0.0.9
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/pub/content/content.rb +3 -3
- data/lib/pub/content/content_prints.rb +1 -26
- data/lib/pub/content/print_versions.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0a71c504ca9f2b229b5d68535c6f96d0d2aed4647c5f09a496f7c4e6dfe39e8
|
4
|
+
data.tar.gz: 26ad78974ffd6995bfa896b76bce187f3f9b6d04e5c35918193702b61b8d1ee7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6862001d7e884971f6d1fc23504a0156fa97f62a14826d08799760374d75edb0a23be70d83d2779872d5612c547bd1b3af75d68b7d93dde7fdc5b929d614181
|
7
|
+
data.tar.gz: 9c7eda03f2587846b5c222bbc9ff1fe7d3629f33511fec4c6ffc127533918d7d8737464874e9888354202c5fee8a88cd329f8d682a55f92c1bbce8923c3686f3
|
data/lib/pub/content/content.rb
CHANGED
@@ -3,11 +3,11 @@
|
|
3
3
|
### V1/CONTENT ###
|
4
4
|
|
5
5
|
require_relative './assets'
|
6
|
-
require_relative './content_prints'
|
7
6
|
require_relative './print_versions'
|
7
|
+
require_relative './content_prints'
|
8
8
|
|
9
9
|
module PublicContent
|
10
10
|
include PublicAssets
|
11
|
-
include
|
12
|
-
include
|
11
|
+
include PublicContentPrints
|
12
|
+
include PublicPrintVersions
|
13
13
|
end
|
@@ -1,30 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
module
|
3
|
-
# === Get content print.
|
4
|
-
# Get a collection of content print.
|
5
|
-
#
|
6
|
-
# ==== Parameters
|
7
|
-
# options:: (Hash) -- List of Resource Collection Options shown above can be used as parameter.
|
8
|
-
# use_post:: (Boolean) -- Variable to determine if the request is by 'post' or 'get' functions.
|
9
|
-
#
|
10
|
-
# ==== First Example
|
11
|
-
# @data = @cxf_user.get_content_prints
|
12
|
-
#
|
13
|
-
# ==== Second Example
|
14
|
-
# options = {
|
15
|
-
# fields: 'id, slug'
|
16
|
-
# }
|
17
|
-
# @data = @cxf_user.get_content_prints(options)
|
18
|
-
#
|
19
|
-
# ==== Third Example
|
20
|
-
# options = {
|
21
|
-
# fields: 'id, slug'
|
22
|
-
# }
|
23
|
-
# @data = @cxf_user.get_content_prints(options, true)
|
24
|
-
def get_content_prints(options = nil, use_post = true)
|
25
|
-
get_query_results('/content/prints', options, use_post)
|
26
|
-
end
|
27
|
-
|
2
|
+
module PublicContentPrints
|
28
3
|
# === Get content print.
|
29
4
|
# Get a content print info.
|
30
5
|
#
|