Class: INatGet::Data::Updater Private
- Inherits:
-
Object
- Object
- INatGet::Data::Updater
- Includes:
- System::Context, IS::Duration
- Defined in:
- lib/inat-get/data/updaters/base.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Direct Known Subclasses
Identifications, Observations, Places, Projects, Taxa, Users
Defined Under Namespace
Classes: Identifications, Observations, Places, Projects, Taxa, Users
Update collapse
- #update!(*args) ⇒ void private
Descendants Specificators collapse
- #endpoint ⇒ Symbol private
- #helper ⇒ INatGet::Data::Helper private
- #manager ⇒ INatGet::Data::Manager private
- #model ⇒ INatGet::Data::Model private
- #parser ⇒ INatGet::Data::Parser private
Descendant Rules collapse
- #allow_id_above? ⇒ Boolean private private
- #allow_locale? ⇒ Boolean private private
- #allow_updated_since? ⇒ Boolean private private
Methods included from System::Context
#check_shutdown!, check_shutdown!, #shutdown?, shutdown?
Instance Method Details
#allow_id_above? ⇒ Boolean (private)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
354 |
# File 'lib/inat-get/data/updaters/base.rb', line 354 def allow_id_above?() = false |
#allow_locale? ⇒ Boolean (private)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
357 |
# File 'lib/inat-get/data/updaters/base.rb', line 357 def allow_locale?() = false |
#allow_updated_since? ⇒ Boolean (private)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
351 |
# File 'lib/inat-get/data/updaters/base.rb', line 351 def allow_updated_since?() = false |
#endpoint ⇒ Symbol
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
64 |
# File 'lib/inat-get/data/updaters/base.rb', line 64 def endpoint() = raise NotImplementedError, "Not implemented method 'endpoint' for abstract Updater", caller_locations |
#helper ⇒ INatGet::Data::Helper
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
61 |
# File 'lib/inat-get/data/updaters/base.rb', line 61 def helper() = self.manager.helper |
#manager ⇒ INatGet::Data::Manager
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
45 46 47 |
# File 'lib/inat-get/data/updaters/base.rb', line 45 def manager @manager ||= get_manager end |
#model ⇒ INatGet::Data::Model
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
58 |
# File 'lib/inat-get/data/updaters/base.rb', line 58 def model() = self.manager.model |
#parser ⇒ INatGet::Data::Parser
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
42 |
# File 'lib/inat-get/data/updaters/base.rb', line 42 def parser() = self.manager.parser |
#update!(condition) ⇒ void #update!(*ids) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
28 29 30 31 32 33 34 35 |
# File 'lib/inat-get/data/updaters/base.rb', line 28 def update! *args return nil if @config[:offline] if args.size == 1 && args.first.is_a?(INatGet::Data::DSL::Condition) update_by_condition! args.first else update_by_ids!(*args) end end |