lib/aixm/feature/organisation.rb in aixm-0.3.0 vs lib/aixm/feature/organisation.rb in aixm-0.3.1

- old
+ new

@@ -7,11 +7,10 @@ # operating agencies, states and so forth. # # ===Cheat Sheet in Pseudo Code: # organisation = AIXM.organisation( # source: String or nil - # region: String or nil (falls back to +AIXM.config.region+) # name: String # type: TYPES # ) # organisation.id = String or nil # organisation.remarks = String or nil @@ -42,12 +41,12 @@ attr_reader :id # @return [String, nil] free text remarks attr_reader :remarks - def initialize(source: nil, region: nil, name:, type:) - super(source: source, region: region) + def initialize(source: nil, name:, type:) + super(source: source) self.name, self.type = name, type end # @return [String] def inspect @@ -73,10 +72,10 @@ end # @return [String] UID markup def to_uid builder = Builder::XmlMarkup.new(indent: 2) - builder.OrgUid({ region: (region if AIXM.ofmx?) }.compact) do |org_uid| + builder.OrgUid do |org_uid| org_uid.txtName(name) end end # @return [String] AIXM or OFMX markup