Class: Dugway::Drops::AccountDrop

Inherits:
BaseDrop
  • Object
show all
Defined in:
lib/dugway/liquid/drops/account_drop.rb

Instance Attribute Summary

Attributes inherited from BaseDrop

#params, #request, #source

Instance Method Summary collapse

Methods inherited from BaseDrop

#before_method, #cart, #context=, #error, #errors, #initialize, #method_missing, #store, #theme

Constructor Details

This class inherits a constructor from Dugway::Drops::BaseDrop

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Dugway::Drops::BaseDrop

Instance Method Details

#countryObject



12
13
14
# File 'lib/dugway/liquid/drops/account_drop.rb', line 12

def country
  @country ||= CountryDrop.new(source['country'])
end

#currencyObject



8
9
10
# File 'lib/dugway/liquid/drops/account_drop.rb', line 8

def currency
  @currency ||= CurrencyDrop.new(source['currency'])
end

#logged_inObject



4
5
6
# File 'lib/dugway/liquid/drops/account_drop.rb', line 4

def logged_in
  false
end