Class: INatGet::Data::Updater Private

Inherits:
Object
  • Object
show all
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

Descendants Specificators collapse

Descendant Rules collapse

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.

Returns:

  • (Boolean)


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.

Returns:

  • (Boolean)


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.

Returns:

  • (Boolean)


351
# File 'lib/inat-get/data/updaters/base.rb', line 351

def allow_updated_since?() = false

#endpointSymbol

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.

Returns:

  • (Symbol)

Raises:

  • (NotImplementedError)


64
# File 'lib/inat-get/data/updaters/base.rb', line 64

def endpoint() = raise NotImplementedError, "Not implemented method 'endpoint' for abstract Updater", caller_locations

#helperINatGet::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

#managerINatGet::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

#modelINatGet::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

#parserINatGet::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.

Overloads:

  • #update!(condition) ⇒ void

    Parameters:

  • #update!(*ids) ⇒ void

    Parameters:

    • ids (Array<Integer, String>)


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