infopark_webcrm_sdk 2.2.0 → 2.3.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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/crm/mailing.rb +10 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5188ce5119786acecdac9dce8a5e4b8eb1e50a7f9a263ba5c8e57d7014a99048
4
- data.tar.gz: 7dc71ffea2a12e620fb3717eb9ee5d783c558945b12d5a82831115b0c5f3873f
3
+ metadata.gz: d0bd367d2bae630503b972ac0134827452d8965d281ce1c711b2957f7674b677
4
+ data.tar.gz: 8b5f72122e7f51c204d207155da05bb0da61e241270650d8b19f635c751a6b2e
5
5
  SHA512:
6
- metadata.gz: a605562d6886097aeb26de8d4536f571b71475f4422f32d614cc0a6cfb132eabd243d7bcd63040049b72d4a781b484ae73a82d82a7069126b43ffb9604bfc371
7
- data.tar.gz: 5d924b6cea7721a7c9c93578b64c4ffb0d032bca088a9775b2d6bd743bd47c5b2d7a68da935133b648635ad04a1b9ad72344a0ade391b7d24d7ccaa90e315ad0
6
+ metadata.gz: 7313adb5a09c25cc41dfc06bede26329131d135a751562c5bae08eeb76593635ad6d0b5479749fc6fe0442af1da1e8ec5a56c778ac06f5bd2b4a1bbf87b3ac69
7
+ data.tar.gz: e94342509b99ce8d5b484dc98038e37e0f1d71a947c72877f2eff83fe69861b73a8bb029de4619fc241c896d2aac8f0e426a1f2e1b7859413d69baf187d44d23
@@ -19,6 +19,16 @@ module Crm
19
19
  # @!parse extend Core::Mixins::Modifiable::ClassMethods
20
20
  # @!parse extend Core::Mixins::Searchable::ClassMethods
21
21
 
22
+ # Clones a mailing.
23
+ # @example
24
+ # mailing.clone
25
+ # # => Crm::Mailing
26
+ # @return [BasicResource] the cloned mailing.
27
+ # @api public
28
+ def clone
29
+ self.class.new(Core::RestApi.instance.post("#{path}/clone", {}))
30
+ end
31
+
22
32
  # Renders a preview of the email for the given contact.
23
33
  # @example
24
34
  # mailing.html_body
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infopark_webcrm_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Infopark AG
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-05 00:00:00.000000000 Z
11
+ date: 2020-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack