Sha256: 30ff95d2b907cc884eba428a3bfc754728df20e76c6888e560122a0d12f628d7

Contents?: true

Size: 710 Bytes

Versions: 4

Compression:

Stored size: 710 Bytes

Contents

require "app_store/base"

# Each Application can have multiple user reviews.
# Available attributes:
# * <tt>average_user_rating</tt>: rating given by the user for the application.
# * <tt>user_name</tt>: name of the user who made the rating.
# * <tt>title</tt>: title of the rating (probably some internal apple stuff).
# * <tt>text</tt>: comment leaved by the user.
class AppStore::UserReview < AppStore::Base
  plist :accepted_type => 'review',
    :mapping => {
      'average-user-rating' => :average_user_rating,
      'user-name'           => :user_name, # TODO : parse user_name to separate username and comment date
      'title'               => :title,
      'text'                => :text
    }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
app_store-0.1.0 lib/app_store/user_review.rb
app_store-0.0.4 lib/app_store/user_review.rb
app_store-0.0.3 lib/app_store/user_review.rb
app_store-0.0.1 lib/app_store/user_review.rb