Module: JpPrefecture

Defined in:
lib/jp_prefecture.rb,
lib/jp_prefecture/base.rb,
lib/jp_prefecture/config.rb,
lib/jp_prefecture/mapping.rb,
lib/jp_prefecture/version.rb,
lib/jp_prefecture/prefecture.rb,
lib/jp_prefecture/zip_mapping.rb

Defined Under Namespace

Modules: Base, Mapping, ZipMapping Classes: Config, Prefecture

Constant Summary collapse

VERSION =
'0.9.0'

Class Method Summary collapse

Class Method Details

.configObject


18
19
20
# File 'lib/jp_prefecture.rb', line 18

def self.config
  @config
end

.included(model_class) ⇒ Object


10
11
12
# File 'lib/jp_prefecture.rb', line 10

def self.included(model_class)
  model_class.extend Base
end

.setup {|@config| ... } ⇒ Object

Yields:


14
15
16
# File 'lib/jp_prefecture.rb', line 14

def self.setup
  yield @config
end