babymetal 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/babymetal/member.rb +16 -18
- data/lib/babymetal/moa_metal.rb +1 -1
- data/lib/babymetal/su_metal.rb +1 -1
- data/lib/babymetal/version.rb +1 -1
- data/lib/babymetal/yui_metal.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4ecebbc60f56c0508f718edd9edd5e757f56f28
|
4
|
+
data.tar.gz: 5907ed706ba821a9f74698f2fb9ebbc0be4d8209
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03a3bfad6dfb0f46d150fcbd4a41f6d4c6b4debf03c856ee1e3c1aea745a2527dd11e42f8352093a84f49dc631e230dd2e75e960a02cd4708d973ace95c6077a
|
7
|
+
data.tar.gz: 591ebfbbf4ba12cfa02a727ffff4499802b66a804bafee73dec69aad5e62427bd21e72fdb2ad5f123e01a9f10f4381d81fc48cb34562b1d3a84f068fe21ae400
|
data/README.md
CHANGED
@@ -29,9 +29,9 @@ Babymetal::facebook
|
|
29
29
|
Babymetal::instagram
|
30
30
|
Babymetal::twitter
|
31
31
|
|
32
|
-
su_metal = Babymetal::
|
33
|
-
yui_metal = Babymetal::
|
34
|
-
moa_metal = Babymetal::
|
32
|
+
su_metal = Babymetal::SuMetal.new
|
33
|
+
yui_metal = Babymetal::YuiMetal.new
|
34
|
+
moa_metal = Babymetal::MoaMetal.new
|
35
35
|
|
36
36
|
su_metal.metal_name # SU-METAL
|
37
37
|
su_metal.first_name_ja # すず香
|
data/lib/babymetal/member.rb
CHANGED
@@ -1,36 +1,34 @@
|
|
1
1
|
require "date"
|
2
2
|
module Babymetal
|
3
3
|
class Member
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
4
|
+
PROPERTIES = %i(
|
5
|
+
metal_name
|
6
|
+
first_name_ja
|
7
|
+
family_name_ja
|
8
|
+
name_ja
|
9
|
+
first_name_en
|
10
|
+
family_name_en
|
11
|
+
name_en
|
12
|
+
birthday
|
13
|
+
blood_type
|
14
|
+
hometown
|
15
|
+
)
|
16
16
|
|
17
|
-
|
18
|
-
attr_accessor prop
|
19
|
-
end
|
17
|
+
attr_accessor *PROPERTIES
|
20
18
|
|
21
19
|
def initialize(hash = self.info)
|
22
20
|
self.send('name_ja' + '=', "#{hash[:family_name_ja]} #{hash[:first_name_ja]}")
|
23
21
|
self.send('name_en' + '=', "#{hash[:first_name_en]} #{hash[:family_name_en]}")
|
24
22
|
hash.each do |key, value|
|
25
|
-
if
|
26
|
-
self.send(
|
23
|
+
if PROPERTIES.member? key.to_sym
|
24
|
+
self.send(key.to_s + '=', value)
|
27
25
|
end
|
28
26
|
end
|
29
27
|
end
|
30
28
|
|
31
29
|
def info
|
32
30
|
{
|
33
|
-
:
|
31
|
+
metal_name: 'We are BABYMETAL',
|
34
32
|
}
|
35
33
|
end
|
36
34
|
|
data/lib/babymetal/moa_metal.rb
CHANGED
data/lib/babymetal/su_metal.rb
CHANGED
data/lib/babymetal/version.rb
CHANGED
data/lib/babymetal/yui_metal.rb
CHANGED