Sha256: 93d57297bd17367dca6abb4a409223180eae765d70b84426bb2ccbf9b04e2775

Contents?: true

Size: 408 Bytes

Versions: 3

Compression:

Stored size: 408 Bytes

Contents

# XML mapping classes relating to divisions
# for OA queries

require 'xml/mapping'

module OpenAustralia

  # a record for a division search
  class DivisionMatch
    include XML::Mapping

    text_node :name, "name"
  end

  # a resultset for a division search
  class DivisionResult
    include XML::Mapping

    array_node :matches, "result", "match", :class=>DivisionMatch, :default_value=>[]
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
openaustralia-1.0.2 lib/openaustralia/divisions.rb
openaustralia-1.0.1 lib/openaustralia/divisions.rb
openaustralia-1.0.0 lib/openaustralia/divisions.rb