Class: Spider::SpiderController

Inherits:
Controller show all
Includes:
HTTPMixin, StaticContent
Defined in:
lib/spiderfw/controller/spider_controller.rb

Instance Attribute Summary

Attributes inherited from Controller

#dispatch_action, #executed_method, #is_target, #request, #response, #scene

Attributes included from Dispatcher

#dispatch_previous

Class Method Summary collapse

Methods inherited from Controller

#action_target?, #after, app, #before, before, before_methods, before_unless, #call_path, #check_action, controller_action?, controller_actions, default_action, #done, #done=, #done?, #execute, find_resource, find_resource_path, #get_action_method, #get_scene, #init, #initialize, #inspect, #is_target?, layout_path, option, options, #prepare_scene, #request_path, template_path, url, url=

Methods included from Annotations

included

Methods included from Logger

add, close, close_all, datetime_format, datetime_format=, #debug, debug, debug?, #debug?, enquire_loggers, #error, error, #error?, error?, #fatal, fatal, #fatal?, fatal?, info, #info, info?, #info?, method_missing, open, reopen, send_to_loggers, unknown, #unknown, #warn, warn, warn?, #warn?

Methods included from Dispatcher

#add_chain_item, #can_dispatch?, #dispatch, #dispatch_chain, #dispatch_next, #do_dispatch, #get_route, included, #route, #routes, #run_chain

Constructor Details

This class inherits a constructor from Spider::Controller

Class Method Details

.pub_pathObject



8
9
10
# File 'lib/spiderfw/controller/spider_controller.rb', line 8

def self.pub_path
    File.join($SPIDER_PATH, 'public')
end

.pub_urlObject



12
13
14
# File 'lib/spiderfw/controller/spider_controller.rb', line 12

def self.pub_url
    HTTPMixin.reverse_proxy_mapping('/spider/public')
end