Class: PlayScrape::AppInfo
- Inherits:
-
Object
- Object
- PlayScrape::AppInfo
- Defined in:
- lib/play_scrape/app.rb
Constant Summary collapse
- ATTRIBUTES =
[ :app_name, :package_name, :description, :rating, :num_ratings, :dev_url, :icon_url, :min_installs, :max_installs, :version ]
Instance Method Summary collapse
-
#initialize ⇒ AppInfo
constructor
A new instance of AppInfo.
- #to_hash ⇒ Object
Constructor Details
#initialize ⇒ AppInfo
Returns a new instance of AppInfo.
17 18 |
# File 'lib/play_scrape/app.rb', line 17 def initialize end |
Instance Method Details
#to_hash ⇒ Object
20 21 22 23 |
# File 'lib/play_scrape/app.rb', line 20 def to_hash hash = Hash.new self.instance_variables.each { |var| hash[var.to_s.delete("@")] = self.instance_variable_get(var) } end |