onix 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +3 -0
- data/lib/onix.rb +1 -1
- data/lib/onix/apa_product.rb +15 -0
- data/lib/onix/market_representation.rb +5 -0
- metadata +2 -2
data/CHANGELOG
CHANGED
data/lib/onix.rb
CHANGED
data/lib/onix/apa_product.rb
CHANGED
@@ -509,6 +509,21 @@ module ONIX
|
|
509
509
|
reps.agent_name = value.to_s
|
510
510
|
end
|
511
511
|
|
512
|
+
def market_country
|
513
|
+
reps = product.market_representations.first
|
514
|
+
return nil if reps.nil?
|
515
|
+
reps.market_country
|
516
|
+
end
|
517
|
+
|
518
|
+
def market_country=(value)
|
519
|
+
reps = product.market_representations.first
|
520
|
+
if reps.nil?
|
521
|
+
reps = ONIX::MarketRepresentation.new
|
522
|
+
product.market_representations << reps
|
523
|
+
end
|
524
|
+
reps.market_country = value.to_s
|
525
|
+
end
|
526
|
+
|
512
527
|
def market_publishing_status
|
513
528
|
reps = product.market_representations.first
|
514
529
|
return nil if reps.nil?
|
@@ -3,6 +3,11 @@ module ONIX
|
|
3
3
|
include ROXML
|
4
4
|
|
5
5
|
xml_accessor :agent_name, :etext, :from => "AgentName"
|
6
|
+
xml_accessor :agent_role, :twodigit, :from => "AgentRole"
|
7
|
+
xml_accessor :market_country, :etext, :from => "MarketCountry"
|
8
|
+
xml_accessor :market_territory, :etext, :from => "MarketTerritory"
|
9
|
+
xml_accessor :market_country_excluded, :etext, :from => "MarketCountryExcluded"
|
10
|
+
xml_accessor :market_restriction_detail, :etext, :from => "MarketRestrictionDetail"
|
6
11
|
xml_accessor :market_publishing_status, :twodigit, :from => "MarketPublishingStatus"
|
7
12
|
end
|
8
13
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: onix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Healy
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-11-
|
12
|
+
date: 2008-11-19 00:00:00 +11:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|