module AppStoreReviews

Constants

STORES
VERSION

Public Class Methods

get(opts) click to toggle source
# File lib/app_store_reviews.rb, line 15
def self.get(opts)
  store = Store.new(opts[:store])
  app = App.new(opts[:app_id])
  json = ReviewsRequest.new(store, app, opts[:limit] || 100).run
  Review.all_from_json(json)
end
strip_html(str) click to toggle source
# File lib/app_store_reviews.rb, line 22
def self.strip_html(str)
  doc = Nokogiri::HTML.parse(str)
  doc.css('br').each { |node| node.replace("\n") }
  doc.text
end