Class: PlayScrape::AppInfo

Inherits:
Object
  • Object
show all
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

Constructor Details

#initializeAppInfo

Returns a new instance of AppInfo.



17
18
# File 'lib/play_scrape/app.rb', line 17

def initialize
end

Instance Method Details

#to_hashObject



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