Module: Datasets::EStatJapan::Configurable

Included in:
Datasets::EStatJapan
Defined in:
lib/datasets/e-stat-japan.rb

Overview

configuration injection

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#app_idObject

Returns the value of attribute app_id.



12
13
14
# File 'lib/datasets/e-stat-japan.rb', line 12

def app_id
  @app_id
end

Instance Method Details

#configure {|_self| ... } ⇒ Object

configuration for e-Stat API See detail at https://www.e-stat.go.jp/api/api-dev/how_to_use (Japanese only).

Examples:

Datasets::EStatJapan.configure do |config|
 # put your App ID for e-Stat app_id
 config.app_id = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
end

Yields:

  • (_self)

Yield Parameters:



23
24
25
# File 'lib/datasets/e-stat-japan.rb', line 23

def configure
  yield self
end