Class: TheCommunityFarm::OrganicBoxes

Inherits:
Object
  • Object
show all
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

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