Class: OpenMenu

Inherits:
Object
  • Object
show all
Includes:
HappyMapper
Defined in:
lib/open_menu.rb

Defined Under Namespace

Classes: Contact, Crosswalk, Delivery, Logo, Menu, OnlineOrder, OnlineReservation, OperatingDay, ParentCompany, Parking, RegionArea

Constant Summary collapse

VERSION =
'0.2.1'

Instance Method Summary collapse

Instance Method Details

#online_orders?Boolean

Returns:

  • (Boolean)


168
169
170
# File 'lib/open_menu.rb', line 168

def online_orders?
  online_orders.size > 0
end

#online_reservations?Boolean

Returns:

  • (Boolean)


154
155
156
# File 'lib/open_menu.rb', line 154

def online_reservations?
  online_reservations.size > 0
end

#private?Boolean

Public: Test if this OpenMenu is private

Returns true if private.

Returns:

  • (Boolean)


14
15
16
# File 'lib/open_menu.rb', line 14

def private?
  private == 'private'
end