Class: RainJackets::Jacket
- Inherits:
-
Object
- Object
- RainJackets::Jacket
- Defined in:
- lib/rain_jackets/jacket.rb
Constant Summary collapse
- @@all =
[]
Instance Attribute Summary collapse
-
#breathability_rating ⇒ Object
Returns the value of attribute breathability_rating.
-
#comfort_rating ⇒ Object
Returns the value of attribute comfort_rating.
-
#cons ⇒ Object
Returns the value of attribute cons.
-
#description ⇒ Object
Returns the value of attribute description.
-
#durability_rating ⇒ Object
Returns the value of attribute durability_rating.
-
#name ⇒ Object
Returns the value of attribute name.
-
#overall_rating ⇒ Object
Returns the value of attribute overall_rating.
-
#packed_size_rating ⇒ Object
Returns the value of attribute packed_size_rating.
-
#price ⇒ Object
Returns the value of attribute price.
-
#pros ⇒ Object
Returns the value of attribute pros.
-
#rating_category ⇒ Object
Returns the value of attribute rating_category.
-
#url ⇒ Object
Returns the value of attribute url.
-
#water_resistance_rating ⇒ Object
Returns the value of attribute water_resistance_rating.
-
#weight_rating ⇒ Object
Returns the value of attribute weight_rating.
Class Method Summary collapse
-
.all ⇒ Object
Class method to expose variable @@all.
-
.all=(jackets) ⇒ Object
Set class method @@all to equate jackets array created by Scraper.
Instance Attribute Details
#breathability_rating ⇒ Object
Returns the value of attribute breathability_rating.
3 4 5 |
# File 'lib/rain_jackets/jacket.rb', line 3 def @breathability_rating end |
#comfort_rating ⇒ Object
Returns the value of attribute comfort_rating.
3 4 5 |
# File 'lib/rain_jackets/jacket.rb', line 3 def @comfort_rating end |
#cons ⇒ Object
Returns the value of attribute cons.
2 3 4 |
# File 'lib/rain_jackets/jacket.rb', line 2 def cons @cons end |
#description ⇒ Object
Returns the value of attribute description.
2 3 4 |
# File 'lib/rain_jackets/jacket.rb', line 2 def description @description end |
#durability_rating ⇒ Object
Returns the value of attribute durability_rating.
3 4 5 |
# File 'lib/rain_jackets/jacket.rb', line 3 def @durability_rating end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/rain_jackets/jacket.rb', line 2 def name @name end |
#overall_rating ⇒ Object
Returns the value of attribute overall_rating.
2 3 4 |
# File 'lib/rain_jackets/jacket.rb', line 2 def @overall_rating end |
#packed_size_rating ⇒ Object
Returns the value of attribute packed_size_rating.
3 4 5 |
# File 'lib/rain_jackets/jacket.rb', line 3 def @packed_size_rating end |
#price ⇒ Object
Returns the value of attribute price.
2 3 4 |
# File 'lib/rain_jackets/jacket.rb', line 2 def price @price end |
#pros ⇒ Object
Returns the value of attribute pros.
2 3 4 |
# File 'lib/rain_jackets/jacket.rb', line 2 def pros @pros end |
#rating_category ⇒ Object
Returns the value of attribute rating_category.
3 4 5 |
# File 'lib/rain_jackets/jacket.rb', line 3 def @rating_category end |
#url ⇒ Object
Returns the value of attribute url.
2 3 4 |
# File 'lib/rain_jackets/jacket.rb', line 2 def url @url end |
#water_resistance_rating ⇒ Object
Returns the value of attribute water_resistance_rating.
3 4 5 |
# File 'lib/rain_jackets/jacket.rb', line 3 def @water_resistance_rating end |
#weight_rating ⇒ Object
Returns the value of attribute weight_rating.
3 4 5 |
# File 'lib/rain_jackets/jacket.rb', line 3 def @weight_rating end |
Class Method Details
.all ⇒ Object
Class method to expose variable @@all
13 14 15 |
# File 'lib/rain_jackets/jacket.rb', line 13 def self.all @@all end |
.all=(jackets) ⇒ Object
Set class method @@all to equate jackets array created by Scraper
8 9 10 |
# File 'lib/rain_jackets/jacket.rb', line 8 def self.all=(jackets) @@all = jackets.uniq end |