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 +4 -4
- data/lib/datafoodconsortium/connector/address.rb +1 -1
- data/lib/datafoodconsortium/connector/agent.rb +1 -1
- data/lib/datafoodconsortium/connector/allergen_characteristic.rb +1 -1
- data/lib/datafoodconsortium/connector/catalog_item.rb +1 -1
- data/lib/datafoodconsortium/connector/characteristic.rb +1 -1
- data/lib/datafoodconsortium/connector/customer_category.rb +1 -1
- data/lib/datafoodconsortium/connector/defined_product.rb +1 -1
- data/lib/datafoodconsortium/connector/enterprise.rb +1 -1
- data/lib/datafoodconsortium/connector/nutrient_characteristic.rb +1 -1
- data/lib/datafoodconsortium/connector/offer.rb +1 -1
- data/lib/datafoodconsortium/connector/order.rb +1 -1
- data/lib/datafoodconsortium/connector/order_line.rb +1 -1
- data/lib/datafoodconsortium/connector/person.rb +1 -1
- data/lib/datafoodconsortium/connector/phone_number.rb +1 -1
- data/lib/datafoodconsortium/connector/physical_characteristic.rb +1 -1
- data/lib/datafoodconsortium/connector/price.rb +1 -1
- data/lib/datafoodconsortium/connector/quantitative_value.rb +1 -1
- data/lib/datafoodconsortium/connector/quantity.rb +1 -1
- data/lib/datafoodconsortium/connector/sale_session.rb +1 -1
- data/lib/datafoodconsortium/connector/social_media.rb +1 -1
- data/lib/datafoodconsortium/connector/supplied_product.rb +1 -1
- data/lib/datafoodconsortium/connector/technical_product.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf89d647de0ff65d77e0fd04ac86e48e1342759f363e5605150d3e95e3bf1e2b
|
4
|
+
data.tar.gz: acda106cf1d03649821c925cc99b4f6598c09c8e7ac680d36811e1cb0e7c7535
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
44
|
+
def initialize(value: nil, vatRate: nil, unit: nil)
|
45
45
|
super()
|
46
46
|
@value = value
|
47
47
|
@vatRate = vatRate
|
@@ -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:
|
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:
|
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:
|
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:
|
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.
|
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-
|
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
|