gotransverse-tract-api 0.1.1 → 0.1.2

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
  SHA1:
3
- metadata.gz: 6ea5e6f618dd055f1317d1e4e1f314d6418fdf5f
4
- data.tar.gz: 990710d63e5b5222de3e960db98dc5b1f3d22439
3
+ metadata.gz: e136ed93de32f0dc8a13c76f362f9cdd24ad4457
4
+ data.tar.gz: b0f04900756ca56d5721773f80e51ef4890274ec
5
5
  SHA512:
6
- metadata.gz: b5f9a05902b83775e1fe0f8c5cfac27bd1f92db147082b03efa5c50203e734e932ab9fb4c575aed30aef16b068b367285906edf0f04bdefd92e2e4e09f41e237
7
- data.tar.gz: 4e8b3ecc0d2b137f33de88bc2cebdd7b7acdcdad73436ff58fd88dbcfbf09d16830ef1e8cb3f0efce19dedf8227819d6e9a472596e90cb834189a388b36246e5
6
+ metadata.gz: aa9de324e988989664f018d6c2dd9eb9ff41deed33c5cba7391f41427df4988dfa9838f29bb9fd3efcd355134a1e7a812a208926668374fefa336b69e0394096
7
+ data.tar.gz: ab8c0bc5acf68940438afca5339727faeed5703aaf484441328410523771545ddfa3cb0dfcb091f88f62f9e58fca8cf52c8e2bd839e5bf3d8337b923bdfffb57
@@ -4,85 +4,117 @@ module GoTransverseTractApi
4
4
 
5
5
  class Product
6
6
 
7
- def self.find_all
8
- GoTransverseTractApi.get_response_for(self)
9
- end
10
-
11
- #
12
- # @param {Long} eid
13
- #
14
- def self.find_by_eid eid
15
- GoTransverseTractApi.get_response_for(self, {eid: eid})
16
- end
17
-
18
- #
19
- # @param {String} name
20
- #
21
- def self.find_by_name name
22
- GoTransverseTractApi.get_response_for(self, {name: name})
23
- end
24
-
25
- #
26
- # @param {String} internal_name
27
- #
28
- def self.find_by_internal_name internal_name
29
- GoTransverseTractApi.get_response_for(self, {internal_name: internal_name})
30
- end
31
-
32
- #
33
- # @param {String} external_product_number
34
- #
35
- def self.find_by_external_product_number external_product_number
36
- GoTransverseTractApi.get_response_for(self, {external_product_number: external_product_number})
37
- end
38
-
39
- #
40
- # @param {String} sku
41
- #
42
- def self.find_by_sku sku
43
- GoTransverseTractApi.get_response_for(self, {sku: sku})
44
- end
45
-
46
- #
47
- # @param {String} product_type_code
48
- #
49
- def self.find_by_product_type_code product_type_code
50
- GoTransverseTractApi.get_response_for(self, {product_type_code: product_type_code})
51
- end
52
-
53
- #
54
- # @param {String} product_state
55
- #
56
- def self.find_by_product_state product_state
57
- GoTransverseTractApi.get_response_for(self, {product_state: product_state})
58
- end
59
-
60
- #
61
- # @param {Long} service_resource_category_eid
62
- #
63
- def self.find_by_service_resource_category_eid service_resource_category_eid
64
- GoTransverseTractApi.get_response_for(self, {service_resource_category_eid: service_resource_category_eid})
65
- end
66
-
67
- #
68
- # @param {String} service_resource_category_name
69
- #
70
- def self.find_by_service_resource_category_name service_resource_category_name
71
- GoTransverseTractApi.get_response_for(self, {service_resource_category_name: service_resource_category_name})
72
- end
73
-
74
- #
75
- # @param {Long} product_category_eid
76
- #
77
- def self.find_by_product_category_eid product_category_eid
78
- GoTransverseTractApi.get_response_for(self, {product_category_eid: product_category_eid})
79
- end
7
+ class << self
8
+
9
+ def find_all
10
+ GoTransverseTractApi.get_response_for(self)
11
+ end
12
+
13
+ #
14
+ # @param {Long} eid
15
+ #
16
+ def find_by_eid eid
17
+ GoTransverseTractApi.get_response_for(self, {eid: eid})
18
+ end
19
+
20
+ #
21
+ # @param {String} name
22
+ #
23
+ def find_by_name name
24
+ GoTransverseTractApi.get_response_for(self, {name: name})
25
+ end
26
+
27
+ #
28
+ # @param {String} internal_name
29
+ #
30
+ def find_by_internal_name internal_name
31
+ GoTransverseTractApi.get_response_for(self, {internal_name: internal_name})
32
+ end
33
+
34
+ #
35
+ # @param {String} external_product_number
36
+ #
37
+ def find_by_external_product_number external_product_number
38
+ GoTransverseTractApi.get_response_for(self, {external_product_number: external_product_number})
39
+ end
40
+
41
+ #
42
+ # @param {String} sku
43
+ #
44
+ def find_by_sku sku
45
+ GoTransverseTractApi.get_response_for(self, {sku: sku})
46
+ end
47
+
48
+ #
49
+ # @param {String} product_type_code
50
+ #
51
+ def find_by_product_type_code product_type_code
52
+ GoTransverseTractApi.get_response_for(self, {product_type_code: product_type_code})
53
+ end
54
+
55
+ #
56
+ # @param {String} product_state
57
+ #
58
+ def find_by_product_state product_state
59
+ GoTransverseTractApi.get_response_for(self, {product_state: product_state})
60
+ end
61
+
62
+ #
63
+ # @param {Long} service_resource_category_eid
64
+ #
65
+ def find_by_service_resource_category_eid service_resource_category_eid
66
+ GoTransverseTractApi.get_response_for(self, {service_resource_category_eid: service_resource_category_eid})
67
+ end
68
+
69
+ #
70
+ # @param {String} service_resource_category_name
71
+ #
72
+ def find_by_service_resource_category_name service_resource_category_name
73
+ GoTransverseTractApi.get_response_for(self, {service_resource_category_name: service_resource_category_name})
74
+ end
75
+
76
+ #
77
+ # @param {Long} product_category_eid
78
+ #
79
+ def find_by_product_category_eid product_category_eid
80
+ GoTransverseTractApi.get_response_for(self, {product_category_eid: product_category_eid})
81
+ end
82
+
83
+ #
84
+ # @param {String} product_category_name
85
+ #
86
+ def find_by_product_category_name product_category_name
87
+ GoTransverseTractApi.get_response_for(self, {product_category_name: product_category_name})
88
+ end
89
+
90
+ #
91
+ # @param {Long} price_list_eid
92
+ #
93
+ def find_by_price_list_eid price_list_eid
94
+ GoTransverseTractApi.get_response_for(self, {price_list_eid: price_list_eid})
95
+ end
96
+
97
+ #
98
+ # @param {Boolean} price_list_is_master
99
+ #
100
+ def find_by_price_list_is_master price_list_is_master
101
+ GoTransverseTractApi.get_response_for(self, {price_list_is_master: price_list_is_master})
102
+ end
103
+
104
+ #
105
+ # @param {String} currency_type
106
+ #
107
+ def find_by_currency_type currency_type
108
+ GoTransverseTractApi.get_response_for(self, {currency_type: currency_type})
109
+ end
110
+
111
+ #
112
+ # @param {Long} product_tag_eid
113
+ #
114
+ def find_by_product_tag_eid product_tag_eid
115
+ GoTransverseTractApi.get_response_for(self, {product_tag_eid: product_tag_eid})
116
+ end
80
117
 
81
- #
82
- # @param {Boolean} price_list_is_master
83
- #
84
- def self.find_by_price_list_is_master price_list_is_master
85
- GoTransverseTractApi.get_response_for(self, {price_list_is_master: price_list_is_master})
86
118
  end
87
119
 
88
120
  end
@@ -1,6 +1,6 @@
1
1
  module GoTransverseTractApi
2
2
 
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  TARGET_API_VERSION = "1.28"
5
5
 
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gotransverse-tract-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien DeFrance