sf_connect 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sf_connect/payload.rb +12 -0
- data/lib/sf_connect/version.rb +1 -1
- data/lib/sf_connect.rb +1 -3
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6bbd8b629514161ddfce2d6e3b7339dec55eec9f83239fa35900e455afcf8c74
|
4
|
+
data.tar.gz: 34254fdbe07ce3b7a5d57ae7147f6237293880900470ee06f78188c7ecaeb5a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91e4bc66a5470b3b0cd4fc46652f7b7d0d7f862cf74d411541de0b20b261599641472e2a37e48a26cf1c2750cbaf959506b466946a065b998dcf5ce712f677e1
|
7
|
+
data.tar.gz: 760587c3c70be8694c11e90470efef931c9730d9d2cbbe361f3455a0a640797536ab463ee78a91da9f0ca2ec8e2d4bb6452c02cef09347c9af0c99bbacf503cf
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module SfConnect
|
2
|
+
# payload for salesforce
|
3
|
+
class Payload
|
4
|
+
attr_reader :record, :for_upload, :for_download
|
5
|
+
|
6
|
+
def initialize(record:, for_upload: nil, for_download: nil)
|
7
|
+
@record = record
|
8
|
+
@for_upload = for_upload
|
9
|
+
@for_download = for_download
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
data/lib/sf_connect/version.rb
CHANGED
data/lib/sf_connect.rb
CHANGED
@@ -7,13 +7,11 @@ require "active_support/all"
|
|
7
7
|
module SfConnect
|
8
8
|
extend ActiveSupport::Autoload
|
9
9
|
autoload :Define
|
10
|
+
autoload :Payload
|
10
11
|
autoload :Fields
|
11
12
|
autoload :Uploader
|
12
13
|
autoload :Downloader
|
13
14
|
|
14
|
-
# upload and download payload
|
15
|
-
Payload = Struct.new(:record, :for_upload, :for_download, keyword_init: true)
|
16
|
-
|
17
15
|
class << self
|
18
16
|
def define(salesforce_object_name, where: nil, **fields, &)
|
19
17
|
SfConnect::Define.new(salesforce_object_name, where:, fields:, &).call
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sf_connect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masa (Aileron inc)
|
@@ -56,6 +56,7 @@ files:
|
|
56
56
|
- lib/sf_connect/define.rb
|
57
57
|
- lib/sf_connect/downloader.rb
|
58
58
|
- lib/sf_connect/fields.rb
|
59
|
+
- lib/sf_connect/payload.rb
|
59
60
|
- lib/sf_connect/uploader.rb
|
60
61
|
- lib/sf_connect/version.rb
|
61
62
|
- sig/sf_connect.rbs
|