Class: TheCommunityFarm::OrganicBoxes
- Inherits:
-
Object
- Object
- TheCommunityFarm::OrganicBoxes
- Includes:
- Enumerable
- Defined in:
- lib/the_community_farm/organic_boxes.rb,
lib/the_community_farm/organic_boxes/box.rb
Overview
Represents a list of organic veg boxes.
Defined Under Namespace
Classes: Box
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(html:) ⇒ OrganicBoxes
constructor
A new instance of OrganicBoxes.
Constructor Details
#initialize(html:) ⇒ OrganicBoxes
Returns a new instance of OrganicBoxes.
9 10 11 |
# File 'lib/the_community_farm/organic_boxes.rb', line 9 def initialize(html:) @html = html end |
Instance Method Details
#each(&block) ⇒ Object
13 14 15 |
# File 'lib/the_community_farm/organic_boxes.rb', line 13 def each(&block) boxes.each(&block) end |