Module: Nppes
- Defined in:
- lib/nppes.rb,
lib/nppes/railtie.rb,
lib/nppes/version.rb,
lib/nppes/jobs/initer_job.rb,
lib/nppes/jobs/updater_job.rb,
lib/nppes/update_pack/base.rb,
lib/nppes/update_pack/data.rb,
lib/nppes/update_pack/pack.rb,
lib/nppes/jobs/searcher_job.rb,
lib/nppes/models/np_address.rb,
lib/nppes/models/np_license.rb,
lib/nppes/update_pack/header.rb,
lib/nppes/models/np_identifier.rb,
lib/nppes/models/np_update_check.rb,
lib/nppes/update_pack/code_values.rb,
lib/nppes/update_pack/required_fields.rb,
lib/generators/nppes/install_generator.rb
Defined Under Namespace
Modules: Generators, Jobs, UpdatePack
Classes: NpAddress, NpIdentifier, NpLicense, NpUpdateCheck, Railtie
Constant Summary
collapse
- VERSION =
'0.3.3.5'
Class Method Summary
collapse
Class Method Details
.background_init ⇒ Object
.background_update(continious = false) ⇒ Object
.decode_value(value_type, value) ⇒ Object
.get_time_period ⇒ Object
56
57
58
|
# File 'lib/nppes.rb', line 56
def get_time_period
weekly ? 8.days.to_i : 32.days.to_i
end
|
.has_npi?(npi) ⇒ Boolean
52
53
54
|
# File 'lib/nppes.rb', line 52
def has_npi?(npi)
Nppes::NpIdentifier.where(npi: npi).present?
end
|
.init_by_file(zip_file_name) ⇒ Object
48
49
50
|
# File 'lib/nppes.rb', line 48
def init_by_file(zip_file_name)
UpdatePack::Pack.proceed(zip_file_name)
end
|
.logger ⇒ Object
24
25
26
|
# File 'lib/nppes.rb', line 24
def logger
@@logger ||= Logger.new(File.join(Rails.root, 'log', 'delayed_job.log'))
end
|
.setup {|_self| ... } ⇒ Object
28
29
30
|
# File 'lib/nppes.rb', line 28
def setup
yield self
end
|