Class: ODDB::Html::State::Drugs::Downloads

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

Defined Under Namespace

Classes: FileInfo

Constant Summary collapse

DIRECT_EVENT =
:downloads
VIEW =
View::Drugs::Downloads

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

Instance Method Summary collapse

Methods inherited from Global

transparent_login

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, #_sequence_by_code, #_tax_factor, #compare_remote, #ddd, #limited?, #navigation, #search

Methods inherited from Global

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

Methods included from PayPal::Checkout

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

Methods included from PayPal::Download

#collect

Methods included from Util::Download

compressed_download, #compressed_download

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

#downloadsObject



35
36
37
# File 'lib/oddb/html/state/drugs/downloads.rb', line 35

def downloads
  self
end

#initObject



29
30
31
32
33
34
# File 'lib/oddb/html/state/drugs/downloads.rb', line 29

def init
  prices = ODDB.config.prices['org.oddb.de.download.1']
  @model = Dir.entries(ODDB.config.export_dir).select do |name|
    prices[name] end.collect do |name| FileInfo.new name end
  super
end