datafoodconsortium-connector 1.0.0.pre.alpha.12 → 1.0.0.pre.alpha.13

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: 3d6f79b555591c7b889eee18259ca8917ee7c7418ed695ed9228ccd514ef2c6a
4
- data.tar.gz: 2083cb92c294c15ed44476d2bc9a0955b29b2617288569b8f4a2976d4bdc27e7
3
+ metadata.gz: cf89d647de0ff65d77e0fd04ac86e48e1342759f363e5605150d3e95e3bf1e2b
4
+ data.tar.gz: acda106cf1d03649821c925cc99b4f6598c09c8e7ac680d36811e1cb0e7c7535
5
5
  SHA512:
6
- metadata.gz: 2b3d91a656eccbb77679a1cda7928dddcb7926be616db9e8f4691103321126e7dcb980d0c55bd9eb0863f6511c872a6db4c9df8ac2ac7267922ecc33ef835a12
7
- data.tar.gz: 774b7d20df7c560415e1aa3a17935c0e7ea8837cd6961d6eaf5ba92bad5f08e3b7cff7db4f9449ff94357f53d90f2e74c5b03a5109e04b36b2653e0fba177904
6
+ metadata.gz: 64012c3d6f2604604d15d75bd38b77867aaca5a3a0989fd4a41887f7e79c74e4d8dda0b2c3546824eb841096551ae8a666be55fb7e9c06313ca1c960601a1832
7
+ data.tar.gz: 2548c9d7f17496f8e4f83d84e6050128b01b6549f54d6237fdf7d1e00b1b1f33b6afcd9fd6fa730865d71fc92e08de2bbccf719cebf0efcc7e1a56d62a7b0e31
@@ -57,7 +57,7 @@ class DataFoodConsortium::Connector::Address
57
57
  # @param latitude [Real]
58
58
  # @param longitude [Real]
59
59
  # @param region [String]
60
- def initialize(semanticId, street: "", postalCode: "", city: "", country: "", latitude: 0.0, longitude: 0.0, region: "")
60
+ def initialize(semanticId, street: nil, postalCode: nil, city: nil, country: nil, latitude: nil, longitude: nil, region: nil)
61
61
  super(semanticId)
62
62
  @street = street
63
63
  @postalCode = postalCode
@@ -54,7 +54,7 @@ class DataFoodConsortium::Connector::Agent
54
54
  # @param websites [String]
55
55
  # @param socialMedias [ISocialMedia]
56
56
  # @param logo [String]
57
- def initialize(semanticId, localizations: [], phoneNumbers: [], emails: [], websites: [], socialMedias: [], logo: "")
57
+ def initialize(semanticId, localizations: [], phoneNumbers: [], emails: [], websites: [], socialMedias: [], logo: nil)
58
58
  super(semanticId)
59
59
  @localizations = localizations
60
60
  @phoneNumbers = phoneNumbers
@@ -35,7 +35,7 @@ class DataFoodConsortium::Connector::AllergenCharacteristic < DataFoodConsortium
35
35
  # @param allergenDimension [ISKOSConcept]
36
36
  # @param unit [ISKOSConcept]
37
37
  # @param value [Real]
38
- def initialize(allergenDimension: nil, unit: nil, value: 0.0)
38
+ def initialize(allergenDimension: nil, unit: nil, value: nil)
39
39
  super(unit: unit, value: value)
40
40
  @allergenDimension = allergenDimension
41
41
  self.semanticType = "dfc-b:AllergenCharacteristic"
@@ -52,7 +52,7 @@ class DataFoodConsortium::Connector::CatalogItem
52
52
  # @param stockLimitation [Real]
53
53
  # @param offers [IOffer]
54
54
  # @param catalogs [ICatalog]
55
- def initialize(semanticId, product: nil, sku: "", stockLimitation: 0.0, offers: [], catalogs: [])
55
+ def initialize(semanticId, product: nil, sku: nil, stockLimitation: nil, offers: [], catalogs: [])
56
56
  super(semanticId)
57
57
  @product = product
58
58
  @sku = sku
@@ -30,7 +30,7 @@ class DataFoodConsortium::Connector::Characteristic < DataFoodConsortium::Connec
30
30
 
31
31
  # @param unit [ISKOSConcept]
32
32
  # @param value [Real]
33
- def initialize(unit: nil, value: 0.0)
33
+ def initialize(unit: nil, value: nil)
34
34
  super(unit: unit, value: value)
35
35
 
36
36
 
@@ -33,7 +33,7 @@ class DataFoodConsortium::Connector::CustomerCategory
33
33
 
34
34
  # @param semanticId [String]
35
35
  # @param description [String]
36
- def initialize(semanticId, description: "")
36
+ def initialize(semanticId, description: nil)
37
37
  super(semanticId)
38
38
  @description = description
39
39
  self.semanticType = "dfc-b:CustomerCategory"
@@ -103,7 +103,7 @@ class DataFoodConsortium::Connector::DefinedProduct
103
103
  # @param natureOrigin [ISKOSConcept]
104
104
  # @param partOrigin [ISKOSConcept]
105
105
  # @param images [String]
106
- def initialize(semanticId, name: "", description: "", productType: nil, quantity: nil, alcoholPercentage: 0.0, lifetime: "", claims: [], usageOrStorageConditions: "", allergenCharacteristics: [], nutrientCharacteristics: [], physicalCharacteristics: [], geographicalOrigin: nil, catalogItems: [], certifications: [], natureOrigin: [], partOrigin: [], images: [])
106
+ def initialize(semanticId, name: nil, description: nil, productType: nil, quantity: nil, alcoholPercentage: nil, lifetime: nil, claims: [], usageOrStorageConditions: nil, allergenCharacteristics: [], nutrientCharacteristics: [], physicalCharacteristics: [], geographicalOrigin: nil, catalogItems: [], certifications: [], natureOrigin: [], partOrigin: [], images: [])
107
107
  super(semanticId)
108
108
  @name = name
109
109
  @description = description
@@ -80,7 +80,7 @@ class DataFoodConsortium::Connector::Enterprise < DataFoodConsortium::Connector:
80
80
  # @param websites [String]
81
81
  # @param socialMedias [ISocialMedia]
82
82
  # @param logo [String]
83
- def initialize(semanticId, name: "", description: "", vatNumber: "", customerCategories: [], catalogs: [], catalogItems: [], suppliedProducts: [], technicalProducts: [], mainContact: nil, localizations: [], phoneNumbers: [], emails: [], websites: [], socialMedias: [], logo: "")
83
+ def initialize(semanticId, name: nil, description: nil, vatNumber: nil, customerCategories: [], catalogs: [], catalogItems: [], suppliedProducts: [], technicalProducts: [], mainContact: nil, localizations: [], phoneNumbers: [], emails: [], websites: [], socialMedias: [], logo: nil)
84
84
  super(semanticId, localizations: localizations, phoneNumbers: phoneNumbers, emails: emails, websites: websites, socialMedias: socialMedias, logo: logo)
85
85
  @name = name
86
86
  @description = description
@@ -35,7 +35,7 @@ class DataFoodConsortium::Connector::NutrientCharacteristic < DataFoodConsortium
35
35
  # @param nutrientDimension [ISKOSConcept]
36
36
  # @param unit [ISKOSConcept]
37
37
  # @param value [Real]
38
- def initialize(nutrientDimension: nil, unit: nil, value: 0.0)
38
+ def initialize(nutrientDimension: nil, unit: nil, value: nil)
39
39
  super(unit: unit, value: value)
40
40
  @nutrientDimension = nutrientDimension
41
41
  self.semanticType = "dfc-b:NutrientCharacteristic"
@@ -48,7 +48,7 @@ class DataFoodConsortium::Connector::Offer
48
48
  # @param stockLimitation [Real]
49
49
  # @param offeredItem [ICatalogItem]
50
50
  # @param offeredTo [ICustomerCategory]
51
- def initialize(semanticId, price: nil, stockLimitation: 0.0, offeredItem: nil, offeredTo: nil)
51
+ def initialize(semanticId, price: nil, stockLimitation: nil, offeredItem: nil, offeredTo: nil)
52
52
  super(semanticId)
53
53
  @price = price
54
54
  @stockLimitation = stockLimitation
@@ -64,7 +64,7 @@ class DataFoodConsortium::Connector::Order
64
64
  # @param fulfilmentStatus [ISKOSConcept]
65
65
  # @param orderStatus [ISKOSConcept]
66
66
  # @param paymentStatus [ISKOSConcept]
67
- def initialize(semanticId, number: "", date: "", saleSession: nil, lines: [], client: nil, fulfilmentStatus: nil, orderStatus: nil, paymentStatus: nil)
67
+ def initialize(semanticId, number: nil, date: nil, saleSession: nil, lines: [], client: nil, fulfilmentStatus: nil, orderStatus: nil, paymentStatus: nil)
68
68
  super(semanticId)
69
69
  @number = number
70
70
  @date = date
@@ -52,7 +52,7 @@ class DataFoodConsortium::Connector::OrderLine
52
52
  # @param price [IPrice]
53
53
  # @param offer [IOffer]
54
54
  # @param order [IOrder]
55
- def initialize(semanticId, description: "", quantity: 0.0, price: nil, offer: nil, order: nil)
55
+ def initialize(semanticId, description: nil, quantity: nil, price: nil, offer: nil, order: nil)
56
56
  super(semanticId)
57
57
  @description = description
58
58
  @quantity = quantity
@@ -49,7 +49,7 @@ class DataFoodConsortium::Connector::Person < DataFoodConsortium::Connector::Age
49
49
  # @param websites [String]
50
50
  # @param socialMedias [ISocialMedia]
51
51
  # @param logo [String]
52
- def initialize(semanticId, firstName: "", lastName: "", affiliatedOrganizations: [], localizations: [], phoneNumbers: [], emails: [], websites: [], socialMedias: [], logo: "")
52
+ def initialize(semanticId, firstName: nil, lastName: nil, affiliatedOrganizations: [], localizations: [], phoneNumbers: [], emails: [], websites: [], socialMedias: [], logo: nil)
53
53
  super(semanticId, localizations: localizations, phoneNumbers: phoneNumbers, emails: emails, websites: websites, socialMedias: socialMedias, logo: logo)
54
54
  @firstName = firstName
55
55
  @lastName = lastName
@@ -37,7 +37,7 @@ class DataFoodConsortium::Connector::PhoneNumber
37
37
  # @param semanticId [String]
38
38
  # @param countryCode [Integer]
39
39
  # @param phoneNumber [String]
40
- def initialize(semanticId, countryCode: 0, phoneNumber: "")
40
+ def initialize(semanticId, countryCode: nil, phoneNumber: nil)
41
41
  super(semanticId)
42
42
  @countryCode = countryCode
43
43
  @phoneNumber = phoneNumber
@@ -35,7 +35,7 @@ class DataFoodConsortium::Connector::PhysicalCharacteristic < DataFoodConsortium
35
35
  # @param physicalDimension [ISKOSConcept]
36
36
  # @param unit [ISKOSConcept]
37
37
  # @param value [Real]
38
- def initialize(physicalDimension: nil, unit: nil, value: 0.0)
38
+ def initialize(physicalDimension: nil, unit: nil, value: nil)
39
39
  super(unit: unit, value: value)
40
40
  @physicalDimension = physicalDimension
41
41
  self.semanticType = "dfc-b:PhysicalCharacteristic"
@@ -41,7 +41,7 @@ class DataFoodConsortium::Connector::Price
41
41
  # @param value [Real]
42
42
  # @param vatRate [Real]
43
43
  # @param unit [ISKOSConcept]
44
- def initialize(value: 0.0, vatRate: 0.0, unit: nil)
44
+ def initialize(value: nil, vatRate: nil, unit: nil)
45
45
  super()
46
46
  @value = value
47
47
  @vatRate = vatRate
@@ -37,7 +37,7 @@ class DataFoodConsortium::Connector::QuantitativeValue
37
37
 
38
38
  # @param unit [ISKOSConcept]
39
39
  # @param value [Real]
40
- def initialize(unit: nil, value: 0.0)
40
+ def initialize(unit: nil, value: nil)
41
41
  super()
42
42
  @unit = unit
43
43
  @value = value
@@ -37,7 +37,7 @@ class DataFoodConsortium::Connector::Quantity
37
37
 
38
38
  # @param unit [ISKOSConcept]
39
39
  # @param value [Real]
40
- def initialize(unit: nil, value: 0.0)
40
+ def initialize(unit: nil, value: nil)
41
41
  super()
42
42
  @unit = unit
43
43
  @value = value
@@ -46,7 +46,7 @@ class DataFoodConsortium::Connector::SaleSession
46
46
  # @param endDate [String]
47
47
  # @param quantity [Real]
48
48
  # @param offers [IOffer]
49
- def initialize(semanticId, beginDate: "", endDate: "", quantity: 0.0, offers: [])
49
+ def initialize(semanticId, beginDate: nil, endDate: nil, quantity: nil, offers: [])
50
50
  super(semanticId)
51
51
  @beginDate = beginDate
52
52
  @endDate = endDate
@@ -37,7 +37,7 @@ class DataFoodConsortium::Connector::SocialMedia
37
37
  # @param semanticId [String]
38
38
  # @param name [String]
39
39
  # @param url [String]
40
- def initialize(semanticId, name: "", url: "")
40
+ def initialize(semanticId, name: nil, url: nil)
41
41
  super(semanticId)
42
42
  @name = name
43
43
  @url = url
@@ -60,7 +60,7 @@ class DataFoodConsortium::Connector::SuppliedProduct < DataFoodConsortium::Conne
60
60
  # @param natureOrigin [ISKOSConcept]
61
61
  # @param partOrigin [ISKOSConcept]
62
62
  # @param images [String]
63
- def initialize(semanticId, totalTheoreticalStock: 0.0, name: "", description: "", productType: nil, quantity: nil, alcoholPercentage: 0.0, lifetime: "", claims: [], usageOrStorageConditions: "", allergenCharacteristics: [], nutrientCharacteristics: [], physicalCharacteristics: [], geographicalOrigin: nil, catalogItems: [], certifications: [], natureOrigin: [], partOrigin: [], images: [])
63
+ def initialize(semanticId, totalTheoreticalStock: nil, name: nil, description: nil, productType: nil, quantity: nil, alcoholPercentage: nil, lifetime: nil, claims: [], usageOrStorageConditions: nil, allergenCharacteristics: [], nutrientCharacteristics: [], physicalCharacteristics: [], geographicalOrigin: nil, catalogItems: [], certifications: [], natureOrigin: [], partOrigin: [], images: [])
64
64
  super(semanticId, name: name, description: description, productType: productType, quantity: quantity, alcoholPercentage: alcoholPercentage, lifetime: lifetime, claims: claims, usageOrStorageConditions: usageOrStorageConditions, allergenCharacteristics: allergenCharacteristics, nutrientCharacteristics: nutrientCharacteristics, physicalCharacteristics: physicalCharacteristics, geographicalOrigin: geographicalOrigin, catalogItems: catalogItems, certifications: certifications, natureOrigin: natureOrigin, partOrigin: partOrigin, images: images)
65
65
  @totalTheoreticalStock = totalTheoreticalStock
66
66
  self.semanticType = "dfc-b:SuppliedProduct"
@@ -48,7 +48,7 @@ class DataFoodConsortium::Connector::TechnicalProduct < DataFoodConsortium::Conn
48
48
  # @param natureOrigin [ISKOSConcept]
49
49
  # @param partOrigin [ISKOSConcept]
50
50
  # @param images [String]
51
- def initialize(semanticId, name: "", description: "", productType: nil, quantity: nil, alcoholPercentage: 0.0, lifetime: "", claims: [], usageOrStorageConditions: "", allergenCharacteristics: [], nutrientCharacteristics: [], physicalCharacteristics: [], geographicalOrigin: nil, catalogItems: [], certifications: [], natureOrigin: [], partOrigin: [], images: [])
51
+ def initialize(semanticId, name: nil, description: nil, productType: nil, quantity: nil, alcoholPercentage: nil, lifetime: nil, claims: [], usageOrStorageConditions: nil, allergenCharacteristics: [], nutrientCharacteristics: [], physicalCharacteristics: [], geographicalOrigin: nil, catalogItems: [], certifications: [], natureOrigin: [], partOrigin: [], images: [])
52
52
  super(semanticId, name: name, description: description, productType: productType, quantity: quantity, alcoholPercentage: alcoholPercentage, lifetime: lifetime, claims: claims, usageOrStorageConditions: usageOrStorageConditions, allergenCharacteristics: allergenCharacteristics, nutrientCharacteristics: nutrientCharacteristics, physicalCharacteristics: physicalCharacteristics, geographicalOrigin: geographicalOrigin, catalogItems: catalogItems, certifications: certifications, natureOrigin: natureOrigin, partOrigin: partOrigin, images: images)
53
53
 
54
54
  self.semanticType = "dfc-b:TechnicalProduct"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datafoodconsortium-connector
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.alpha.12
4
+ version: 1.0.0.pre.alpha.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maxime Lecoq
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-10 00:00:00.000000000 Z
11
+ date: 2024-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: virtual_assembly-semantizer