yoyakutopten_scraper 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ed0337e18d62f12456b9369b6ae5ef1a5baca5a4
4
- data.tar.gz: d117f7839440a7119f7fa5ab209a2c12f8e65797
3
+ metadata.gz: c0350f796d13420df577920dd011de37b84f150e
4
+ data.tar.gz: c821cb09d792a337a31e3b34d6c412de8b74c5ab
5
5
  SHA512:
6
- metadata.gz: 90b39667d029e1160f2c34810a8740ab4d0c5cb1c64407329bc4dce4e3831f907c6eb3c40fff1c34b17f2e3413ca992a985376322518fb69326cc5bbd98e9a1f
7
- data.tar.gz: 6a5792e532d05a222289a8913dd2387e4b6cc9b39a24cf068f4992cdd01ddb29dca12fd369f45bc672cc42e9871265d726d7fceeaa50477db0055143f5c0ad03
6
+ metadata.gz: cd794c5089fe236d2ca4e550837810d46108ba33f44e695ebb5e972399e039279f02d3714a05820b14f19b754762a76e96d99992a53a58864231249a79936959
7
+ data.tar.gz: fbfa5dd103337bef064d8a25d9ee595c0ea49319cc6bd1c2ff06701b60049f42d23bdd61f8b66d18d69a3ff4d153df2dd4837895babdad17b14988dad081c9f3
data/lib/test.rb CHANGED
@@ -5,11 +5,12 @@ ranking.update
5
5
 
6
6
  app = ranking.results.first
7
7
 
8
- #app_detail = YoyakutoptenScraper::App.new app_id: app[:app_id], os_type: app[:os_type]
9
- app_detail = YoyakutoptenScraper::App.new app_id: 'MzI5MA', os_type: 'ios'
8
+ app_detail = YoyakutoptenScraper::App.new app_id: app[:app_id], os_type: app[:os_type]
10
9
  bonus_detail = YoyakutoptenScraper::Bonus.new bonus_id: app[:bonus_id], os_type: app[:os_type]
11
10
 
11
+
12
12
  app_detail.update
13
+ p app_detail.title
13
14
  p app_detail
14
15
  bonus_detail.update
15
16
  p bonus_detail
@@ -1,5 +1,7 @@
1
1
  module YoyakutoptenScraper
2
2
  class Bonus
3
+ attr_reader :img_url, :description
4
+
3
5
  def initialize(bonus_id:, os_type:)
4
6
  @bonus_id = bonus_id
5
7
  @os_type = os_type
@@ -32,4 +34,4 @@ module YoyakutoptenScraper
32
34
  self.parse (Nokogiri::HTML.parse response.body)
33
35
  end
34
36
  end
35
- end
37
+ end
@@ -1,3 +1,3 @@
1
1
  module YoyakutoptenScraper
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yoyakutopten_scraper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - ryysd