Class: PlayScrape::AppInfo
- Inherits:
-
Object
- Object
- PlayScrape::AppInfo
- Defined in:
- lib/play_scrape/app.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#dev_url ⇒ Object
Returns the value of attribute dev_url.
-
#icon_url ⇒ Object
Returns the value of attribute icon_url.
-
#max_installs ⇒ Object
Returns the value of attribute max_installs.
-
#min_installs ⇒ Object
Returns the value of attribute min_installs.
-
#num_ratings ⇒ Object
Returns the value of attribute num_ratings.
-
#package_name ⇒ Object
Returns the value of attribute package_name.
-
#rating ⇒ Object
Returns the value of attribute rating.
Instance Method Summary collapse
-
#initialize ⇒ AppInfo
constructor
A new instance of AppInfo.
- #to_hash ⇒ Object
Constructor Details
#initialize ⇒ AppInfo
6 7 |
# File 'lib/play_scrape/app.rb', line 6 def initialize end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/play_scrape/app.rb', line 3 def description @description end |
#dev_url ⇒ Object
Returns the value of attribute dev_url.
3 4 5 |
# File 'lib/play_scrape/app.rb', line 3 def dev_url @dev_url end |
#icon_url ⇒ Object
Returns the value of attribute icon_url.
3 4 5 |
# File 'lib/play_scrape/app.rb', line 3 def icon_url @icon_url end |
#max_installs ⇒ Object
Returns the value of attribute max_installs.
3 4 5 |
# File 'lib/play_scrape/app.rb', line 3 def max_installs @max_installs end |
#min_installs ⇒ Object
Returns the value of attribute min_installs.
3 4 5 |
# File 'lib/play_scrape/app.rb', line 3 def min_installs @min_installs end |
#num_ratings ⇒ Object
Returns the value of attribute num_ratings.
3 4 5 |
# File 'lib/play_scrape/app.rb', line 3 def end |
#package_name ⇒ Object
Returns the value of attribute package_name.
3 4 5 |
# File 'lib/play_scrape/app.rb', line 3 def package_name @package_name end |
#rating ⇒ Object
Returns the value of attribute rating.
3 4 5 |
# File 'lib/play_scrape/app.rb', line 3 def end |
Instance Method Details
#to_hash ⇒ Object
9 10 11 12 |
# File 'lib/play_scrape/app.rb', line 9 def to_hash hash = Hash.new self.instance_variables.each { |var| hash[var.to_s.delete("@")] = self.instance_variable_get(var) } end |