Class: ODDB::Html::State::Drugs::Global

Inherits:
Global
  • Object
show all
Includes:
Events
Defined in:
lib/oddb/html/state/drugs/global.rb,
lib/oddb/html/state/global_predefine.rb

Constant Summary

Constants inherited from Global

Global::GLOBAL_MAP, Global::LIMIT

Instance Attribute Summary

Attributes inherited from Global

#passed_turing_test

Attributes included from LoginMethods

#desired_input

Class Method Summary collapse

Methods included from Events

#_compare, #_complete, #_explain_ddd_price, #_explain_price, #_fachinfo, #_feedback, #_package, #_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

Class Method Details

.transparent_login(*events) ⇒ Object



250
251
252
253
254
255
256
257
258
# File 'lib/oddb/html/state/drugs/global.rb', line 250

def (*events)
  events.each { |event|
    define_method(event) {
      state = trigger(:login)
      state.desired_input = @session.valid_input.dup
      state
    }
  }
end