Class: AtomFeed::OpenSearchQuery

Inherits:
Object
  • Object
show all
Defined in:
lib/atom_feed/open_search_query.rb

Instance Method Summary collapse

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_pageObject



24
25
26
# File 'lib/atom_feed/open_search_query.rb', line 24

def items_per_page
  @node["itemsPerPage"].to_i
end

#roleObject



8
9
10
# File 'lib/atom_feed/open_search_query.rb', line 8

def role
  @node["role"]
end

#search_termsObject



12
13
14
# File 'lib/atom_feed/open_search_query.rb', line 12

def search_terms
  @node["searchTerms"]
end

#start_indexObject



20
21
22
# File 'lib/atom_feed/open_search_query.rb', line 20

def start_index
  @node["startIndex"].to_i
end

#start_pageObject



16
17
18
# File 'lib/atom_feed/open_search_query.rb', line 16

def start_page
  @node["startPage"].to_i
end