lib/chgk_rating/collections/ratings.rb in chgk_rating-1.0.0.rc1 vs lib/chgk_rating/collections/ratings.rb in chgk_rating-1.0.0
- old
+ new
@@ -1,23 +1,23 @@
-module ChgkRating
- module Collections
- class Ratings < Base
- attr_reader :team
-
- def initialize(params = {})
- @team = build_model params[:team]
-
- super
- end
-
- private
-
- def process(*_args)
- super { |result| ChgkRating::Models::Rating.new result }
- end
-
- def api_path
- "teams/#{@team.id}/rating"
- end
- end
- end
+module ChgkRating
+ module Collections
+ class Ratings < Base
+ attr_reader :team
+
+ def initialize(params = {})
+ @team = build_model params[:team]
+
+ super
+ end
+
+ private
+
+ def process(*_args)
+ super { |result| ChgkRating::Models::Rating.new result }
+ end
+
+ def api_path
+ "teams/#{@team.id}/rating"
+ end
+ end
+ end
end
\ No newline at end of file