Class: RainJackets::Jacket

Inherits:
Object
  • Object
show all
Defined in:
lib/rain_jackets/jacket.rb

Constant Summary collapse

@@all =
[]

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#breathability_ratingObject

Returns the value of attribute breathability_rating.



3
4
5
# File 'lib/rain_jackets/jacket.rb', line 3

def breathability_rating
  @breathability_rating
end

#comfort_ratingObject

Returns the value of attribute comfort_rating.



3
4
5
# File 'lib/rain_jackets/jacket.rb', line 3

def comfort_rating
  @comfort_rating
end

#consObject

Returns the value of attribute cons.



2
3
4
# File 'lib/rain_jackets/jacket.rb', line 2

def cons
  @cons
end

#descriptionObject

Returns the value of attribute description.



2
3
4
# File 'lib/rain_jackets/jacket.rb', line 2

def description
  @description
end

#durability_ratingObject

Returns the value of attribute durability_rating.



3
4
5
# File 'lib/rain_jackets/jacket.rb', line 3

def durability_rating
  @durability_rating
end

#nameObject

Returns the value of attribute name.



2
3
4
# File 'lib/rain_jackets/jacket.rb', line 2

def name
  @name
end

#overall_ratingObject

Returns the value of attribute overall_rating.



2
3
4
# File 'lib/rain_jackets/jacket.rb', line 2

def overall_rating
  @overall_rating
end

#packed_size_ratingObject

Returns the value of attribute packed_size_rating.



3
4
5
# File 'lib/rain_jackets/jacket.rb', line 3

def packed_size_rating
  @packed_size_rating
end

#priceObject

Returns the value of attribute price.



2
3
4
# File 'lib/rain_jackets/jacket.rb', line 2

def price
  @price
end

#prosObject

Returns the value of attribute pros.



2
3
4
# File 'lib/rain_jackets/jacket.rb', line 2

def pros
  @pros
end

#rating_categoryObject

Returns the value of attribute rating_category.



3
4
5
# File 'lib/rain_jackets/jacket.rb', line 3

def rating_category
  @rating_category
end

#urlObject

Returns the value of attribute url.



2
3
4
# File 'lib/rain_jackets/jacket.rb', line 2

def url
  @url
end

#water_resistance_ratingObject

Returns the value of attribute water_resistance_rating.



3
4
5
# File 'lib/rain_jackets/jacket.rb', line 3

def water_resistance_rating
  @water_resistance_rating
end

#weight_ratingObject

Returns the value of attribute weight_rating.



3
4
5
# File 'lib/rain_jackets/jacket.rb', line 3

def weight_rating
  @weight_rating
end

Class Method Details

.allObject

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