Class: ODDB::Html::State::Drugs::Package

Inherits:
Global
  • Object
show all
Defined in:
lib/oddb/html/state/drugs/package.rb

Direct Known Subclasses

Admin::Package

Constant Summary collapse

LIMIT =
true
VIEW =
View::Drugs::Package

Constants inherited from Global

Global::GLOBAL_MAP

Instance Attribute Summary

Attributes inherited from Global

#passed_turing_test

Attributes included from LoginMethods

#desired_input

Instance Method Summary collapse

Methods inherited from Global

transparent_login

Methods included from Events

#_compare, #_complete, #_explain_ddd_price, #_explain_price, #_fachinfo, #_feedback, #_package_by_code, #_package_infos, #_patinfo, #_products, #_remote, #_remote_comparables, #_remote_infos, #_remote_package, #_remote_packages, #_search, #_search_append_products, #_search_append_sequences, #_search_by, #_search_local, #_search_remote, #_tax_factor, #compare_remote, #ddd, #limited?, #navigation, #search

Methods inherited from Global

#_download, #compare, #explain_ddd_price, #explain_price, #fachinfo, #feedback, #home, #limit_state, #limited?, #logout, #method_missing, #navigation, #package, #package_infos, #partitioned_keys, #patinfo, #proceed_export, #proceed_poweruser, #product, #products, #remote_infos, #sequence

Methods included from PayPal::Checkout

#ajax_autofill, #checkout, #checkout_keys, #checkout_mandatory, #collect, #create_user

Methods included from LoginMethods

#login_

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ODDB::Html::State::Global

Instance Method Details

#_package(code) ⇒ Object



21
22
23
24
25
26
27
# File 'lib/oddb/html/state/drugs/package.rb', line 21

def _package(code)
  if(@model.code(:cid, ODDB.config.country) == code)
    self
  else
    super
  end
end

#direct_eventObject



14
15
16
17
18
19
20
# File 'lib/oddb/html/state/drugs/package.rb', line 14

def direct_event
  direct_event = [:package]
  if(code = @model.code(:cid, ODDB.config.country))
    direct_event.push([:cid, code.value])
  end
  direct_event
end