Class: App
- Inherits:
-
Object
- Object
- App
- Defined in:
- lib/top_free_apps_itunes/app.rb
Constant Summary collapse
- @@all =
[]
Instance Attribute Summary collapse
-
#category ⇒ Object
Returns the value of attribute category.
-
#developer ⇒ Object
Returns the value of attribute developer.
-
#language ⇒ Object
Returns the value of attribute language.
-
#rating ⇒ Object
Returns the value of attribute rating.
-
#size ⇒ Object
Returns the value of attribute size.
-
#title ⇒ Object
Returns the value of attribute title.
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(title, url) ⇒ App
constructor
A new instance of App.
Constructor Details
#initialize(title, url) ⇒ App
Returns a new instance of App.
6 7 8 9 10 |
# File 'lib/top_free_apps_itunes/app.rb', line 6 def initialize(title, url) @title = title @url = url @@all << self end |
Instance Attribute Details
#category ⇒ Object
Returns the value of attribute category.
3 4 5 |
# File 'lib/top_free_apps_itunes/app.rb', line 3 def category @category end |
#developer ⇒ Object
Returns the value of attribute developer.
3 4 5 |
# File 'lib/top_free_apps_itunes/app.rb', line 3 def developer @developer end |
#language ⇒ Object
Returns the value of attribute language.
3 4 5 |
# File 'lib/top_free_apps_itunes/app.rb', line 3 def language @language end |
#rating ⇒ Object
Returns the value of attribute rating.
3 4 5 |
# File 'lib/top_free_apps_itunes/app.rb', line 3 def @rating end |
#size ⇒ Object
Returns the value of attribute size.
3 4 5 |
# File 'lib/top_free_apps_itunes/app.rb', line 3 def size @size end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/top_free_apps_itunes/app.rb', line 3 def title @title end |
#url ⇒ Object
Returns the value of attribute url.
3 4 5 |
# File 'lib/top_free_apps_itunes/app.rb', line 3 def url @url end |
Class Method Details
.all ⇒ Object
12 13 14 |
# File 'lib/top_free_apps_itunes/app.rb', line 12 def self.all @@all end |