Class: KanjiMaster::Person
- Inherits:
-
Object
- Object
- KanjiMaster::Person
- Defined in:
- lib/kanji_master/person.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#address_kata ⇒ Object
Returns the value of attribute address_kata.
-
#birthday ⇒ Object
Returns the value of attribute birthday.
-
#bloodtype ⇒ Object
Returns the value of attribute bloodtype.
-
#gender ⇒ Object
Returns the value of attribute gender.
-
#name ⇒ Object
Returns the value of attribute name.
-
#name_kana ⇒ Object
Returns the value of attribute name_kana.
-
#zip ⇒ Object
Returns the value of attribute zip.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(person) ⇒ Person
constructor
A new instance of Person.
Constructor Details
#initialize(person) ⇒ Person
Returns a new instance of Person.
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/kanji_master/person.rb', line 13 def initialize(person) @name = person['name'] @name_kana = person['name_kana'] @gender = person['gender'] @bloodtype = person['bloodtype'] @birthday = person['birthday'] @zip = person['zip'] @address = person['address'] @address_kata = person['address_kata'] end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
11 12 13 |
# File 'lib/kanji_master/person.rb', line 11 def address @address end |
#address_kata ⇒ Object
Returns the value of attribute address_kata.
11 12 13 |
# File 'lib/kanji_master/person.rb', line 11 def address_kata @address_kata end |
#birthday ⇒ Object
Returns the value of attribute birthday.
11 12 13 |
# File 'lib/kanji_master/person.rb', line 11 def birthday @birthday end |
#bloodtype ⇒ Object
Returns the value of attribute bloodtype.
11 12 13 |
# File 'lib/kanji_master/person.rb', line 11 def bloodtype @bloodtype end |
#gender ⇒ Object
Returns the value of attribute gender.
11 12 13 |
# File 'lib/kanji_master/person.rb', line 11 def gender @gender end |
#name ⇒ Object
Returns the value of attribute name.
11 12 13 |
# File 'lib/kanji_master/person.rb', line 11 def name @name end |
#name_kana ⇒ Object
Returns the value of attribute name_kana.
11 12 13 |
# File 'lib/kanji_master/person.rb', line 11 def name_kana @name_kana end |
#zip ⇒ Object
Returns the value of attribute zip.
11 12 13 |
# File 'lib/kanji_master/person.rb', line 11 def zip @zip end |
Class Method Details
.data ⇒ Object
8 9 10 |
# File 'lib/kanji_master/person.rb', line 8 def self.data @data['persons']['person'] end |