Class: Kansou::GooglePlayReview

Inherits:
Object
  • Object
show all
Defined in:
lib/kansou/google_play_review.rb

Instance Method Summary collapse

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

#fetchObject



18
19
20
21
# File 'lib/kansou/google_play_review.rb', line 18

def fetch
  result = download(@app_id)
  parse(result)
end