spaceship/lib/spaceship/tunes/app_ratings.rb in fastlane-2.14.2 vs spaceship/lib/spaceship/tunes/app_ratings.rb in fastlane-2.15.0.beta.20170213032052
- old
+ new
@@ -83,18 +83,9 @@
'ratingThreeCount' => :three_star_rating_count,
'ratingFourCount' => :four_star_rating_count,
'ratingFiveCount' => :five_star_rating_count
})
- class << self
- # Create a new object based on a hash.
- # This is used to create a new object based on the server response.
- def factory(attrs)
- obj = self.new(attrs)
- return obj
- end
- end
-
# @return (Float) the average rating for this summary (rounded to 2 decimal places)
def average_rating
((self.one_star_rating_count +
(self.two_star_rating_count * 2) +
(self.three_star_rating_count * 3) +