agris 0.11.0 → 0.12.0

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: 4ca59aa46ef40059a98f12291e6433e2dd81e310c552f45816c4f5f0b64f15d1
4
- data.tar.gz: adc82e55c4d84649bf5a3758900d3076c1b4521fe5396a1be4d73dda21149787
3
+ metadata.gz: 83de61e6c3ece173301e410d1456ce90358d7a937128afc827511a1e77a71193
4
+ data.tar.gz: c98b57cb7f8faac2bbe8e9d40d0ccba57232a2135aca99e166f01e5f6f6ed04c
5
5
  SHA512:
6
- metadata.gz: a3fb735daf4a387d809a32ed37e466b38ba32575f4649ad86d2c231b609c00fb185b641f1b8471299877f77a712cf4dd0ca52574d634d60cc87aa0dddcdf2f83
7
- data.tar.gz: 9aa2ed7a02355c603b57ebcc9d7bdf75aa537f20e7062bd7bec85e86a13ab621da82fcf4de3feb1113057371a1d8bcc13db7d046421e4bfdf34e28468088134d
6
+ metadata.gz: a533f4ded640940595787d167a6d56c8f1494bac2b1ccc50df8dcb1405857c90f00a9f3a3ae60a063890262c01db5658d18c4a88101265b4643035df0ae65fa4
7
+ data.tar.gz: aff4b153e10fb10daf9d57fcf52a60e2641aa8ed465f6dd899ae4de62d828b76148d76228fb3e61066fc1506c36630ae137dc10a664ad6697f90da0ecfa2f9bc
@@ -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
@@ -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
- 'agris/api/grain/specific_commodity_code_extract'
20
- autoload :SpecificContractExtract,
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
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Agris
3
- VERSION = '0.11.0'
4
+ VERSION = '0.12.0'
4
5
  end
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.11.0
4
+ version: 0.12.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-03-07 00:00:00.000000000 Z
12
+ date: 2024-03-22 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