Class: AMarmita::Client

Inherits:
Object
  • Object
show all
Includes:
Authentication, WebAgent
Defined in:
lib/a_marmita.rb

Instance Method Summary collapse

Methods included from Authentication

include, #logged?, #login, #set_credentials

Instance Method Details

#cartObject



21
22
23
# File 'lib/a_marmita.rb', line 21

def cart
  @cart ||= Cart::Base.new(self)
end

#mealsObject



25
26
27
# File 'lib/a_marmita.rb', line 25

def meals
  @meals ||= Meals::Base.new(self)
end

#ordersObject



29
30
31
# File 'lib/a_marmita.rb', line 29

def orders
  @orders ||= Orders::Base.new(self)
end

#paymentObject



33
34
35
# File 'lib/a_marmita.rb', line 33

def payment
  @payment ||= Payment.new(self)
end