Class: AtomFeed::OpenSearchQuery
- Defined in:
- lib/atom_feed/open_search_query.rb
Instance Method Summary collapse
-
#initialize(node) ⇒ OpenSearchQuery
constructor
Initializes the Open Search Query element.
- #items_per_page ⇒ Object
- #role ⇒ Object
- #search_terms ⇒ Object
- #start_index ⇒ Object
- #start_page ⇒ Object
Constructor Details
#initialize(node) ⇒ OpenSearchQuery
Initializes the Open Search Query element.
4 5 6 |
# File 'lib/atom_feed/open_search_query.rb', line 4 def initialize(node) @node = node end |
Instance Method Details
#items_per_page ⇒ Object
24 25 26 |
# File 'lib/atom_feed/open_search_query.rb', line 24 def items_per_page @node["itemsPerPage"].to_i end |
#role ⇒ Object
8 9 10 |
# File 'lib/atom_feed/open_search_query.rb', line 8 def role @node["role"] end |
#search_terms ⇒ Object
12 13 14 |
# File 'lib/atom_feed/open_search_query.rb', line 12 def search_terms @node["searchTerms"] end |
#start_index ⇒ Object
20 21 22 |
# File 'lib/atom_feed/open_search_query.rb', line 20 def start_index @node["startIndex"].to_i end |
#start_page ⇒ Object
16 17 18 |
# File 'lib/atom_feed/open_search_query.rb', line 16 def start_page @node["startPage"].to_i end |