Class: Tesco::Groceries::Aisle
- Inherits:
-
Object
- Object
- Tesco::Groceries::Aisle
- Defined in:
- lib/tesco.rb
Instance Attribute Summary collapse
-
#aisle_id ⇒ Object
readonly
Returns the value of attribute aisle_id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(api, details) ⇒ Aisle
constructor
No point in creating these by hand.
- #inspect ⇒ Object
-
#shelves ⇒ Object
Lists all shelves in this aisle.
Constructor Details
Instance Attribute Details
#aisle_id ⇒ Object (readonly)
Returns the value of attribute aisle_id.
412 413 414 |
# File 'lib/tesco.rb', line 412 def aisle_id @aisle_id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
412 413 414 |
# File 'lib/tesco.rb', line 412 def name @name end |
Instance Method Details
#inspect ⇒ Object
427 428 429 |
# File 'lib/tesco.rb', line 427 def inspect "#{@name} Aisle" end |
#shelves ⇒ Object
Lists all shelves in this aisle. Each item is a Shelf object
423 424 425 |
# File 'lib/tesco.rb', line 423 def shelves @shelves end |