Class: Kansou::GooglePlayReview
- Inherits:
-
Object
- Object
- Kansou::GooglePlayReview
- Defined in:
- lib/kansou/google_play_review.rb
Instance Method Summary collapse
- #fetch ⇒ Object
-
#initialize(app_id) ⇒ GooglePlayReview
constructor
A new instance of GooglePlayReview.
Constructor Details
#initialize(app_id) ⇒ GooglePlayReview
Returns a new instance of GooglePlayReview.
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/kansou/google_play_review.rb', line 7 def initialize(app_id) return nil unless app_id @app_id = app_id @titles = [] @bodies = [] @dates = [] @stars = [] @authors = [] end |
Instance Method Details
#fetch ⇒ Object
18 19 20 21 |
# File 'lib/kansou/google_play_review.rb', line 18 def fetch result = download(@app_id) parse(result) end |