class Atom::Feed
Feed
Class
Public Instance Methods
generator()
click to toggle source
# File lib/atomutil.rb, line 1098 def generator get_object(Namespace::ATOM, 'generator', Generator) end
generator=(gen)
click to toggle source
# File lib/atomutil.rb, line 1102 def generator=(gen) gen = gen.is_a?(Generator) ? gen : Generator.new(:name => gen) set(Namespace::ATOM, 'generator', gen) end
items_per_page()
click to toggle source
# File lib/atomutil.rb, line 1089 def items_per_page value = get(Namespace::OPEN_SEARCH, 'itemsPerPage') value.nil?? nil : value.text.to_i end
items_per_page=(num)
click to toggle source
# File lib/atomutil.rb, line 1094 def items_per_page=(num) set(Namespace::OPEN_SEARCH, 'itemsPerPage', num.to_s) end
language()
click to toggle source
# File lib/atomutil.rb, line 1107 def language @elem.attributes['xml:lang'] end
language=(lang)
click to toggle source
# File lib/atomutil.rb, line 1111 def language=(lang) #@elem.add_attribute 'lang', 'http://www.w3.org/XML/1998/Namespace' @elem.add_attribute 'xml:lang', lang end
start_index()
click to toggle source
# File lib/atomutil.rb, line 1080 def start_index value = get(Namespace::OPEN_SEARCH, 'startIndex') value.nil?? nil : value.text.to_i end
start_index=(num)
click to toggle source
# File lib/atomutil.rb, line 1085 def start_index=(num) set(Namespace::OPEN_SEARCH, 'startIndex', num.to_s) end
total_results()
click to toggle source
# File lib/atomutil.rb, line 1071 def total_results value = get(Namespace::OPEN_SEARCH, 'totalResults') value.nil?? nil : value.text.to_i end
total_results=(num)
click to toggle source
# File lib/atomutil.rb, line 1076 def total_results=(num) set(Namespace::OPEN_SEARCH, 'totalResults', num.to_s) end
version()
click to toggle source
# File lib/atomutil.rb, line 1116 def version @elem.attributes['version'] end
version=(ver)
click to toggle source
# File lib/atomutil.rb, line 1120 def version=(ver) @elem.add_attribute 'version', ver end