Sha256: 531783ef8e3393d25137333f0a1b41e851b1a94bbf4b3b3359b9ae4aced181de

Contents?: true

Size: 613 Bytes

Versions: 3

Compression:

Stored size: 613 Bytes

Contents

require 'xml/mapping'

module OpenAustralia

  # comments
  class Comments
    include XML::Mapping

    numeric_node :comment_id, 'comment_id'
    numeric_node :user_id, 'user_id'
    text_node :body, 'body'
    text_node :posted, 'posted'
    numeric_node :major, 'major'
    text_node :gid, 'gid'
    text_node :firstname, 'firstname'
    text_node :lastname, 'lastname'
    text_node :url, 'url'
  end
  
  # search results from a comments search
  class CommentsSearch # :nodoc:
    include XML::Mapping

    array_node :results, 'comments', 'match', :class => Comments,
      :default_value => []
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

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