g5_foundation_client 0.1.0 → 0.2.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.
- checksums.yaml +4 -4
- data/lib/g5_foundation_client/models/location.rb +0 -16
- data/lib/g5_foundation_client/version.rb +1 -1
- data/lib/g5_foundation_client.rb +0 -1
- data/spec/fixtures/hub-clients.json +20022 -0
- data/spec/lib/g5_foundation_client/models/location_spec.rb +0 -5
- metadata +4 -5
- data/lib/g5_foundation_client/models/integration_setting.rb +0 -30
- data/spec/lib/g5_foundation_client/models/integration_setting_spec.rb +0 -71
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f1d9587c5bb0939c2ad30e79d2d4df91b703b47
|
4
|
+
data.tar.gz: 77c5d7aba3a5eb56dbc4cf2547fe65840a7af797
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5075193c43165d0da1e40039178edebe08c831868aaf3d7f756e52301cc259884e18f1ecd642055d6f925a48a63190c6cc61b9984a392713f86a6410bbf6ed4a
|
7
|
+
data.tar.gz: ba35cc9dd496d5d35f714287be93b622e281ed75097ba0922078c06a9b989bb2b885e174b0214c7afaabfe84e3f8d7721839481e8978542b28fdc6c3a04b2e31
|
@@ -45,20 +45,4 @@ class G5FoundationClient::Location
|
|
45
45
|
return street_address_1 if street_address_2.blank?
|
46
46
|
"#{street_address_1}\n#{street_address_2}"
|
47
47
|
end
|
48
|
-
|
49
|
-
def integration_settings
|
50
|
-
@integration_settings ||= self.location_hash.fetch(:locations_integration_settings, []).collect { |is| G5FoundationClient::IntegrationSetting.new(is.merge(location: self)) }
|
51
|
-
end
|
52
|
-
|
53
|
-
def inventory_integration_settings
|
54
|
-
inventory_integration_setting_by_vendor_action :inventory?
|
55
|
-
end
|
56
|
-
|
57
|
-
def lead_integration_settings
|
58
|
-
inventory_integration_setting_by_vendor_action :lead?
|
59
|
-
end
|
60
|
-
|
61
|
-
def inventory_integration_setting_by_vendor_action(vendor_action)
|
62
|
-
integration_settings.detect { |is| is.send(vendor_action) }
|
63
|
-
end
|
64
48
|
end
|
data/lib/g5_foundation_client.rb
CHANGED
@@ -18,7 +18,6 @@ require 'g5_foundation_client/record_not_found_exception'
|
|
18
18
|
require 'g5_foundation_client/fetcher'
|
19
19
|
|
20
20
|
require 'g5_foundation_client/models/findable_by_uid'
|
21
|
-
require 'g5_foundation_client/models/integration_setting'
|
22
21
|
require 'g5_foundation_client/models/location'
|
23
22
|
require 'g5_foundation_client/models/client'
|
24
23
|
|