class AtomFeed::OpenSearchQuery
Public Class Methods
new(node)
click to toggle source
Initializes the Open Search Query element.
# File lib/atom_feed/open_search_query.rb, line 4 def initialize(node) @node = node end
Public Instance Methods
items_per_page()
click to toggle source
# File lib/atom_feed/open_search_query.rb, line 24 def items_per_page @node["itemsPerPage"].to_i end
role()
click to toggle source
# File lib/atom_feed/open_search_query.rb, line 8 def role @node["role"] end
search_terms()
click to toggle source
# File lib/atom_feed/open_search_query.rb, line 12 def search_terms @node["searchTerms"] end
start_index()
click to toggle source
# File lib/atom_feed/open_search_query.rb, line 20 def start_index @node["startIndex"].to_i end
start_page()
click to toggle source
# File lib/atom_feed/open_search_query.rb, line 16 def start_page @node["startPage"].to_i end