sobjectmodel 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 328f6e06aa1dcde67def58a2146a95f1ca355c19cb14941846f6488c2aa4681c
4
- data.tar.gz: df59863700a647440f82e9bc31b4f1ba26958d6350509fbec595097d915e5c0c
3
+ metadata.gz: 930b04a95cceac236260d2ad5e3980357be0771eac205d40845c089a7d5e098f
4
+ data.tar.gz: 69df2c359d3464e220fc959109cd5a3f8f3100ae3bdcd96093aca6f17a417f04
5
5
  SHA512:
6
- metadata.gz: 320377f566b03dd471981c9a7f1c538feb81b581f15307aa0d84a97844e4b7f4134acf4de5900a961796e6566fda1aa5f9abc145147c218982b71f464614ebf1
7
- data.tar.gz: 9ad303b217d2f266bff897fd8f57b7eb9ad7fc4a01c10a242dce7b02e818bb7c63c0d38d93247f0e48bbda4a5fddf6210841bcfc4112dcc5d02ca530362ea4f5
6
+ metadata.gz: f77de46f6b207b2360b3c2d8249bd58122194f07e9849c1d4d05f66d40bf55f125e9fed1290e1bb2ec2449a9e47853a2913c7ebaeda700a227da67d1763ccaed
7
+ data.tar.gz: e5fd37561fa8caba3f660f164f29dc0f01dbba1c024e86ab2cb89e9767f519fe6426d6b60fe3f52afea7321dfb59d4c16c15ff842e5ed17acf1aaa07bc05fcf7
@@ -1,3 +1,4 @@
1
+ require_relative '../sobject_model'
1
2
  require_relative './class_definition'
2
3
 
3
4
  module SObjectModel
@@ -23,6 +24,7 @@ module SObjectModel
23
24
  instance_eval "::#{object_type} = #{class_definition}"
24
25
  klass = Object.const_get object_type.to_sym
25
26
  klass.connection = connection
27
+ SObjectModel.generated_classes << klass
26
28
  generated_types << object_type
27
29
  end
28
30
 
@@ -12,7 +12,7 @@ module SObjectModel
12
12
  end
13
13
 
14
14
  def to_s
15
- %|[#{@code}] #{@msg}|
15
+ %|[#{@error_code}] #{@error_message}|
16
16
  end
17
17
  end
18
18
  end
data/lib/sobject_model.rb CHANGED
@@ -18,6 +18,10 @@ module SObjectModel
18
18
  @connection
19
19
  end
20
20
 
21
+ def self.generated_classes
22
+ @generated_classes ||= []
23
+ end
24
+
21
25
  def self.connection=(connector)
22
26
  @connection = connector
23
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sobjectmodel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takanobu Maekawa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-04 00:00:00.000000000 Z
11
+ date: 2024-11-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Saleforce sObject class library
14
14
  email: