Module: MobileStores::MobileStore::JsonClassMethods
- Defined in:
- lib/mobile_stores/mobile_store.rb
Instance Method Summary collapse
-
#find_app(id, country) ⇒ Object
Finds app in store by ID.
-
#search_apps(query, count = nil, country) ⇒ Object
Searches apps in store by query.
Instance Method Details
#find_app(id, country) ⇒ Object
Finds app in store by ID.
AppStore.find_app("12345") # returns +App+ object
100 101 102 |
# File 'lib/mobile_stores/mobile_store.rb', line 100 def find_app(id, country) process_app_json(json(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
108 109 110 |
# File 'lib/mobile_stores/mobile_store.rb', line 108 def search_apps(query, count = nil, country) process_apps_json(json(apps_url(query, count, country))) end |