agris 0.12.0 → 0.14.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.rb +2 -0
- data/lib/agris/api/messages/import.rb +1 -1
- data/lib/agris/api/name/farm_fields.rb +13 -0
- data/lib/agris/api/name/new_farm_field.rb +29 -0
- data/lib/agris/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eaf7263670a136c8efbc0a4d437240f566724a756b379242353565ead5934779
|
4
|
+
data.tar.gz: 4d18688b7461b704b0984acbce6ca1931f4306d8cc78538d734e6451df486c9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17d60a0f3152ff051da439cd1d0c1ee5d4a184adfb3fc6d7c2ceee42fe5c4976c5affdad456c49acdb51f9667efb6446c6945493832146ca2f380c5ad67d660d
|
7
|
+
data.tar.gz: 9a5e180f1d918deaef8c75f9e5ab030b69aa632eaf5827166b5c2221e925632a664de171de8a1438575106230b0a434e0fde7b05fa0a6b73d735527719cdb744
|
data/lib/agris/api/grain.rb
CHANGED
@@ -6,11 +6,13 @@ module Agris
|
|
6
6
|
autoload :Commodity, 'agris/api/grain/commodity'
|
7
7
|
autoload :CommodityCodes, 'agris/api/grain/commodity_codes'
|
8
8
|
autoload :Contract, 'agris/api/grain/contract'
|
9
|
+
autoload :FarmFields, 'agris/api/name/farm_fields'
|
9
10
|
autoload :GradeFactors, 'agris/api/grain/grade_factors'
|
10
11
|
autoload :GrainModule, 'agris/api/grain/grain_module'
|
11
12
|
autoload :PurchaseContracts, 'agris/api/grain/purchase_contracts'
|
12
13
|
autoload :NewContract, 'agris/api/grain/new_contract'
|
13
14
|
autoload :NewContractSchedule, 'agris/api/grain/new_contract_schedule'
|
15
|
+
autoload :NewFarmField, 'agris/api/name/new_farm_field'
|
14
16
|
autoload :NewTicket, 'agris/api/grain/new_ticket'
|
15
17
|
autoload :NewTicketApplication, 'agris/api/grain/new_ticket_application'
|
16
18
|
autoload :NewTicketRemark, 'agris/api/grain/new_ticket_remark'
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Agris
|
4
|
+
module Api
|
5
|
+
module Name
|
6
|
+
class NewFarmField
|
7
|
+
include XmlModel
|
8
|
+
|
9
|
+
ATTRIBUTE_NAMES = %w(
|
10
|
+
name_id
|
11
|
+
farm_abbreviation
|
12
|
+
farm_status
|
13
|
+
farm_description
|
14
|
+
field_abbreviation
|
15
|
+
field_status
|
16
|
+
field_description
|
17
|
+
).freeze
|
18
|
+
|
19
|
+
attr_accessor(*ATTRIBUTE_NAMES)
|
20
|
+
|
21
|
+
def initialize(hash = {})
|
22
|
+
super
|
23
|
+
|
24
|
+
@record_type = 'NAMF0'
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
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.14.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-12-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: savon
|
@@ -207,6 +207,8 @@ files:
|
|
207
207
|
- lib/agris/api/messages/query_order_documents.rb
|
208
208
|
- lib/agris/api/messages/query_purchase_contract_documents.rb
|
209
209
|
- lib/agris/api/messages/query_sales_contract_documents.rb
|
210
|
+
- lib/agris/api/name/farm_fields.rb
|
211
|
+
- lib/agris/api/name/new_farm_field.rb
|
210
212
|
- lib/agris/api/new_order.rb
|
211
213
|
- lib/agris/api/new_order_remark.rb
|
212
214
|
- lib/agris/api/new_voucher.rb
|