Sha256: 95cdfa8e879de97d45ad71412bcd11ba3f13e8d8bfd58aa7215ae6f1acea8580

Contents?: true

Size: 328 Bytes

Versions: 4

Compression:

Stored size: 328 Bytes

Contents

#!/usr/bin/env ruby
require_relative './../spec/spec_helper'

class SearchQuery  
	include ROXML
	xml_accessor :query
	xml_accessor :max_results, :else => 20, :as => Integer
	xml_accessor :language, :else => 'EN'
end


unless defined?(RSpec) 
	q = SearchQuery.new
	q.query = "Some random query string."
	puts q.to_xml.to_s
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
roxml-4.2.0 examples/search_query.rb
roxml-4.1.1 examples/search_query.rb
roxml-4.1.0 examples/search_query.rb
roxml-4.0.0 examples/search_query.rb