Sha256: dbbab5aa4357d059d0c6d27753fc8c3a2322581bbe440fa0a91dc077c3ce8552

Contents?: true

Size: 548 Bytes

Versions: 2

Compression:

Stored size: 548 Bytes

Contents

module Shoppr
  class ConsumerReview
    include ROXML
    xml_convention {|val| val.camelize(:lower) }
    xml_reader :author_id, :from => 'authorID'
    xml_reader :post_date, :as => Time
    xml_reader :rating, :as => Float, :from => 'rating/overallRating'
    xml_reader :feature_ratings, :as => [FeatureRating], :from => 'rating/featureRating'
    xml_reader :summary
    xml_reader :bottom_line
    xml_reader :pros
    xml_reader :cons
    xml_reader :content, :from => 'reviewContent'
    xml_reader :url, :from => 'fullReviewURL'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shoppr-0.1.1 lib/shoppr/consumer_review.rb
shoppr-0.1.0 lib/shoppr/consumer_review.rb