agris 0.11.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/agris/api/grain/rates.rb +39 -0
- data/lib/agris/api/grain.rb +4 -6
- data/lib/agris/api/messages/import.rb +1 -1
- data/lib/agris/version.rb +2 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b01b1c2bdbf5778087a2ce5a47c9acf25b98e537a78c613115c3d71ecd5b8c16
|
4
|
+
data.tar.gz: 65f4af5eda9e2bec401b21f83023fb499db85e5b335364a8b6ac5b4fefccc7e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d736ba6fa4a6292e45074cbfb46f3b46baeba254f5d3d69b003d7c9171c7292b5ea09c70ac9bab03c16eec489f489b897080bf0afc51acdb2673c21f0fc915cd
|
7
|
+
data.tar.gz: 33348d956029a0d6fcccef8399c15be25d250b9257eb5b3ec01c59e5aa58d0ad297576ffdfeb4748c76fdd93b42b23db8ae8620819055e6dc707fb523271879c
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Agris
|
4
|
+
module Api
|
5
|
+
module Grain
|
6
|
+
class Rates
|
7
|
+
include XmlModel
|
8
|
+
|
9
|
+
ATTRIBUTE_NAMES = %w(
|
10
|
+
rate_1
|
11
|
+
rate_2
|
12
|
+
rate_3
|
13
|
+
rate_4
|
14
|
+
rate_type_1
|
15
|
+
rate_type_2
|
16
|
+
rate_type_3
|
17
|
+
rate_type_4
|
18
|
+
code_1
|
19
|
+
code_2
|
20
|
+
code_3
|
21
|
+
code_4
|
22
|
+
table_1
|
23
|
+
table_2
|
24
|
+
table_3
|
25
|
+
table_4
|
26
|
+
).freeze
|
27
|
+
|
28
|
+
attr_reader :record_type
|
29
|
+
attr_accessor(*ATTRIBUTE_NAMES)
|
30
|
+
|
31
|
+
def initialize(hash = {})
|
32
|
+
super
|
33
|
+
|
34
|
+
@record_type = 'GRNT1R'
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
data/lib/agris/api/grain.rb
CHANGED
@@ -14,13 +14,11 @@ module Agris
|
|
14
14
|
autoload :NewTicket, 'agris/api/grain/new_ticket'
|
15
15
|
autoload :NewTicketApplication, 'agris/api/grain/new_ticket_application'
|
16
16
|
autoload :NewTicketRemark, 'agris/api/grain/new_ticket_remark'
|
17
|
+
autoload :Rates, 'agris/api/grain/rates'
|
17
18
|
autoload :SalesContracts, 'agris/api/grain/sales_contracts'
|
18
|
-
autoload :SpecificCommodityCodeExtract,
|
19
|
-
|
20
|
-
autoload :
|
21
|
-
'agris/api/grain/specific_contract_extract'
|
22
|
-
autoload :Tickets,
|
23
|
-
'agris/api/grain/tickets'
|
19
|
+
autoload :SpecificCommodityCodeExtract, 'agris/api/grain/specific_commodity_code_extract'
|
20
|
+
autoload :SpecificContractExtract, 'agris/api/grain/specific_contract_extract'
|
21
|
+
autoload :Tickets, 'agris/api/grain/tickets'
|
24
22
|
end
|
25
23
|
end
|
26
24
|
end
|
data/lib/agris/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: agris
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Gray
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-08-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: savon
|
@@ -178,6 +178,7 @@ files:
|
|
178
178
|
- lib/agris/api/grain/new_ticket_application.rb
|
179
179
|
- lib/agris/api/grain/new_ticket_remark.rb
|
180
180
|
- lib/agris/api/grain/purchase_contracts.rb
|
181
|
+
- lib/agris/api/grain/rates.rb
|
181
182
|
- lib/agris/api/grain/sales_contracts.rb
|
182
183
|
- lib/agris/api/grain/specific_commodity_code_extract.rb
|
183
184
|
- lib/agris/api/grain/specific_contract_extract.rb
|