agris 0.4.10 → 0.5.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
- SHA1:
3
- metadata.gz: acbb4d3729fe7cee9f14802aa26851c60758695c
4
- data.tar.gz: 2de9591d6d5558d119c53210eaa3d6868e7c1792
2
+ SHA256:
3
+ metadata.gz: 45f30d154b9b21ea93e553498193a724c6c50240854b85d1c1c54372dcb9e629
4
+ data.tar.gz: 95fcc1ca1343437d9c30d6862a8c95577547ccf03e536d8b57243abe133294e9
5
5
  SHA512:
6
- metadata.gz: eeb678465c2a58a7194a02ed9d740c982ef392c5935baeb55ad2162c1411b7be424a1d657f82c4b2acbbabbfa879c24519463f4554282ca0f218f94b6da202dc
7
- data.tar.gz: 460386f7e225998d81063d5f1a7d84fc063685f5a0e689bc53be3d7132fb714649f82f5cffb06cb7aed5c3af5136b96d56456f02845baafb9da02c96349dd597
6
+ metadata.gz: f539022ea4d98242abd8fe26d02b92929d732e20c46f73031026691aa27c3bb7ea0e69ab9a8a6abf21a7927a36feaa27eeb6b14d3a398943493ee2ab209da9de
7
+ data.tar.gz: 76626a9230d6b03327ddf6191291787646392ad5515b650b2f117d23acf89965ee11d7d02d73dda5efc6470bed4ecefdfd9025d0194536fa869c0c1cfe7f2681
@@ -0,0 +1,121 @@
1
+ # frozen_string_literal: true
2
+ module Agris
3
+ module Api
4
+ module Grain
5
+ class GradeFactors
6
+ include XmlModel
7
+
8
+ ATTRIBUTE_NAMES = %w(
9
+ discount_code_1
10
+ discount_code_2
11
+ discount_code_3
12
+ discount_code_4
13
+ discount_code_5
14
+ discount_code_6
15
+ discount_code_7
16
+ discount_code_8
17
+ discount_code_9
18
+ discount_code_10
19
+ discount_code_11
20
+ discount_code_12
21
+ discount_code_13
22
+ discount_code_14
23
+ discount_code_15
24
+ discount_code_16
25
+ discount_code_17
26
+ discount_code_18
27
+ discount_code_19
28
+ discount_code_20
29
+ discount_code_21
30
+ discount_code_22
31
+ discount_code_23
32
+ discount_code_24
33
+ discount_code_25
34
+ discount_code_26
35
+ discount_code_27
36
+ discount_code_28
37
+ discount_code_29
38
+ discount_code_30
39
+ discount_code_31
40
+ discount_code_32
41
+ discount_code_33
42
+ grade_factor_1
43
+ grade_factor_2
44
+ grade_factor_3
45
+ grade_factor_4
46
+ grade_factor_5
47
+ grade_factor_6
48
+ grade_factor_7
49
+ grade_factor_8
50
+ grade_factor_9
51
+ grade_factor_10
52
+ grade_factor_11
53
+ grade_factor_12
54
+ grade_factor_13
55
+ grade_factor_14
56
+ grade_factor_15
57
+ grade_factor_16
58
+ grade_factor_17
59
+ grade_factor_18
60
+ grade_factor_19
61
+ grade_factor_20
62
+ grade_factor_21
63
+ grade_factor_22
64
+ grade_factor_23
65
+ grade_factor_24
66
+ grade_factor_25
67
+ grade_factor_26
68
+ grade_factor_27
69
+ grade_factor_28
70
+ grade_factor_29
71
+ grade_factor_30
72
+ grade_factor_31
73
+ grade_factor_32
74
+ grade_factor_33
75
+ reserved_1
76
+ reserved_2
77
+ reserved_3
78
+ reserved_4
79
+ reserved_5
80
+ reserved_6
81
+ reserved_7
82
+ reserved_8
83
+ reserved_9
84
+ reserved_10
85
+ reserved_11
86
+ reserved_12
87
+ reserved_13
88
+ reserved_14
89
+ reserved_15
90
+ reserved_16
91
+ reserved_17
92
+ reserved_18
93
+ reserved_19
94
+ reserved_20
95
+ reserved_21
96
+ reserved_22
97
+ reserved_23
98
+ reserved_24
99
+ reserved_25
100
+ reserved_26
101
+ reserved_27
102
+ reserved_28
103
+ reserved_29
104
+ reserved_30
105
+ reserved_31
106
+ reserved_32
107
+ reserved_33
108
+ ).freeze
109
+
110
+ attr_reader :record_type
111
+ attr_accessor(*ATTRIBUTE_NAMES)
112
+
113
+ def initialize(hash = {})
114
+ super
115
+
116
+ @record_type = 'GRNT0G'
117
+ end
118
+ end
119
+ end
120
+ end
121
+ end
@@ -5,6 +5,7 @@ module Agris
5
5
  autoload :Commodity, 'agris/api/grain/commodity'
6
6
  autoload :CommodityCodes, 'agris/api/grain/commodity_codes'
7
7
  autoload :Contract, 'agris/api/grain/contract'
8
+ autoload :GradeFactors, 'agris/api/grain/grade_factors'
8
9
  autoload :PurchaseContracts, 'agris/api/grain/purchase_contracts'
9
10
  autoload :NewTicket, 'agris/api/grain/new_ticket'
10
11
  autoload :NewTicketApplication, 'agris/api/grain/new_ticket_application'
data/lib/agris/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Agris
3
- VERSION = '0.4.10'
3
+ VERSION = '0.5.0'
4
4
  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.4.10
4
+ version: 0.5.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: 2021-03-02 00:00:00.000000000 Z
12
+ date: 2022-04-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: savon
@@ -170,6 +170,7 @@ files:
170
170
  - lib/agris/api/grain/commodity.rb
171
171
  - lib/agris/api/grain/commodity_codes.rb
172
172
  - lib/agris/api/grain/contract.rb
173
+ - lib/agris/api/grain/grade_factors.rb
173
174
  - lib/agris/api/grain/new_ticket.rb
174
175
  - lib/agris/api/grain/new_ticket_application.rb
175
176
  - lib/agris/api/grain/new_ticket_remark.rb
@@ -244,7 +245,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
244
245
  version: '0'
245
246
  requirements: []
246
247
  rubyforge_project:
247
- rubygems_version: 2.5.2
248
+ rubygems_version: 2.7.6.2
248
249
  signing_key:
249
250
  specification_version: 4
250
251
  summary: Ruby client library for Agris API