Class: Rabbit::Source::RWiki
- Inherits:
-
Object
- Object
- Rabbit::Source::RWiki
- Includes:
- Base, LimitAccessInterval
- Defined in:
- lib/rabbit/source/rwiki.rb
Constant Summary
Constants included from LimitAccessInterval
LimitAccessInterval::MINIMUM_ACCESS_TIME
Instance Attribute Summary
Attributes included from Base
#base, #encoding, #force_modified, #tmp_base
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(encoding, logger, soap_if_uri, name) ⇒ RWiki
constructor
A new instance of RWiki.
- #need_read? ⇒ Boolean
Methods included from LimitAccessInterval
Methods included from Base
append_features, #full_path, #modified?, #old?, #open_full_path, #read, #reset, #source=, #tmp_dir_name
Constructor Details
#initialize(encoding, logger, soap_if_uri, name) ⇒ RWiki
Returns a new instance of RWiki.
15 16 17 18 19 20 21 |
# File 'lib/rabbit/source/rwiki.rb', line 15 def initialize(encoding, logger, soap_if_uri, name) @soap_if_uri = soap_if_uri @name = name super(encoding, logger) @driver = ::RWiki::SOAP::Driver.new(@soap_if_uri) @driver.log_dir = tmp_dir_name end |
Class Method Details
.initial_args_description ⇒ Object
11 12 13 |
# File 'lib/rabbit/source/rwiki.rb', line 11 def self.initial_args_description N_("[RWIKI_SOAP_IF_URI] and [PAGE_NAME]") end |
Instance Method Details
#need_read? ⇒ Boolean
23 24 25 |
# File 'lib/rabbit/source/rwiki.rb', line 23 def need_read? super or old?(@last_modified, :modified) end |