jpx_industry_code 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: c80fefae9c85fb87c10475d0cf9297029d41d86d5307a9322cbdc6df5383834e
4
+ data.tar.gz: 9ae5529cbf37ebd66cf1273962f85c5456b3c755361806a71f24f8a4e24425eb
5
+ SHA512:
6
+ metadata.gz: 0f340954d830561d62dd6f61a32b86e03cd2bccbda14721a6e90816d899e54c058860a2dfc9dfb47be75c0607ffbf3c075aa2d9463b1f7ae44d812d501507752
7
+ data.tar.gz: f6d60ece555adb2668c8f01499e8d2e298bfd30b9ed50f87c53e6828806e410657e06a169dfb41948c48d3de7dea2534ca5c8e0ff9de23e02ebdc1c34f504bea
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ class JpxIndustryCode
4
+ class Category
5
+ class << self
6
+ def all
7
+ [
8
+ { id: 1, name: '水産・農林業' },
9
+ { id: 2, name: '鉱業' },
10
+ { id: 3, name: '建設業' },
11
+ { id: 4, name: '製造業' },
12
+ { id: 5, name: '電気・ガス業' },
13
+ { id: 6, name: '運輸・情報通信業' },
14
+ { id: 7, name: '商業' },
15
+ { id: 8, name: '金融・保険業' },
16
+ { id: 9, name: '不動産業' },
17
+ { id: 10, name: 'サービス業' }
18
+ ]
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,46 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'jpx_industry_code/category'
4
+
5
+ class JpxIndustryCode
6
+ class << self
7
+ def all
8
+ [
9
+ { id: 1, jpx_industry_code_category_id: 1, name: '水産・農林業', code: '0050' },
10
+ { id: 2, jpx_industry_code_category_id: 2, name: '鉱業', code: '1050' },
11
+ { id: 3, jpx_industry_code_category_id: 3, name: '建設業', code: '2050' },
12
+ { id: 4, jpx_industry_code_category_id: 4, name: '食料品', code: '3050' },
13
+ { id: 5, jpx_industry_code_category_id: 4, name: '繊維製品', code: '3100' },
14
+ { id: 6, jpx_industry_code_category_id: 4, name: 'パルプ・紙', code: '3150' },
15
+ { id: 7, jpx_industry_code_category_id: 4, name: '化学', code: '3200' },
16
+ { id: 8, jpx_industry_code_category_id: 4, name: '医薬品', code: '3250' },
17
+ { id: 9, jpx_industry_code_category_id: 4, name: '石油・石炭製品', code: '3300' },
18
+ { id: 10, jpx_industry_code_category_id: 4, name: 'ゴム製品', code: '3350' },
19
+ { id: 11, jpx_industry_code_category_id: 4, name: 'ガラス・土石製品', code: '3400' },
20
+ { id: 12, jpx_industry_code_category_id: 4, name: '鉄鋼', code: '3450' },
21
+ { id: 13, jpx_industry_code_category_id: 4, name: '非鉄金属', code: '3500' },
22
+ { id: 14, jpx_industry_code_category_id: 4, name: '金属製品', code: '3550' },
23
+ { id: 15, jpx_industry_code_category_id: 4, name: '機械', code: '3600' },
24
+ { id: 16, jpx_industry_code_category_id: 4, name: '電気機器', code: '3650' },
25
+ { id: 17, jpx_industry_code_category_id: 4, name: '輸送用機器', code: '3700' },
26
+ { id: 18, jpx_industry_code_category_id: 4, name: '精密機器', code: '3750' },
27
+ { id: 19, jpx_industry_code_category_id: 4, name: 'その他製品', code: '3800' },
28
+ { id: 20, jpx_industry_code_category_id: 4, name: 'その他製品', code: '3800' },
29
+ { id: 21, jpx_industry_code_category_id: 5, name: '電気・ガス業', code: '4050' },
30
+ { id: 22, jpx_industry_code_category_id: 6, name: '陸運業', code: '5050' },
31
+ { id: 23, jpx_industry_code_category_id: 6, name: '海運業', code: '5100' },
32
+ { id: 24, jpx_industry_code_category_id: 6, name: '空運業', code: '5150' },
33
+ { id: 25, jpx_industry_code_category_id: 6, name: '倉庫・運輸関連業', code: '5200' },
34
+ { id: 26, jpx_industry_code_category_id: 6, name: '情報・通信業', code: '5250' },
35
+ { id: 27, jpx_industry_code_category_id: 7, name: '卸売業', code: '6050' },
36
+ { id: 28, jpx_industry_code_category_id: 7, name: '小売業', code: '6100' },
37
+ { id: 28, jpx_industry_code_category_id: 8, name: '銀行業', code: '7050' },
38
+ { id: 29, jpx_industry_code_category_id: 8, name: '証券、商品先物取引業', code: '7100' },
39
+ { id: 30, jpx_industry_code_category_id: 8, name: '保険業', code: '7150' },
40
+ { id: 31, jpx_industry_code_category_id: 8, name: 'その他金融業', code: '7200' },
41
+ { id: 32, jpx_industry_code_category_id: 9, name: '不動産業', code: '8050' },
42
+ { id: 33, jpx_industry_code_category_id: 10, name: 'サービス業', code: '9050' }
43
+ ]
44
+ end
45
+ end
46
+ end
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jpx_industry_code
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.3
5
+ platform: ruby
6
+ authors:
7
+ - Rui Onodera
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-02-07 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: JPX industry code and category gem
14
+ email: deraru@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/jpx_industry_code.rb
20
+ - lib/jpx_industry_code/category.rb
21
+ homepage: https://github.com/ai-capital/jpx_industry_code
22
+ licenses:
23
+ - MIT
24
+ metadata: {}
25
+ post_install_message:
26
+ rdoc_options: []
27
+ require_paths:
28
+ - lib
29
+ required_ruby_version: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ required_rubygems_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ requirements: []
40
+ rubygems_version: 3.1.2
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: JPX industry code gem
44
+ test_files: []