Module: MobileStores::MobileStore::HtmlClassMethods

Defined in:
lib/mobile_stores/mobile_store.rb

Instance Method Summary collapse

Instance Method Details

#find_app(id, country) ⇒ Object

Finds app in store by ID.

AppStore.find_app("12345") # returns +App+ object


138
139
140
# File 'lib/mobile_stores/mobile_store.rb', line 138

def find_app(id, country)
  process_app_html(doc(app_url(id, country)))
end

#search_apps(query, count = nil, country) ⇒ Object

Searches apps in store by query.

AppStore.search_apps("angry") # returns array of +App+ objects


146
147
148
# File 'lib/mobile_stores/mobile_store.rb', line 146

def search_apps(query, count = nil, country)
  process_apps_html(doc(apps_url(query, count, country)), count)
end