Class: Rubiderella::Person::Name

Inherits:
Object
  • Object
show all
Defined in:
lib/rubiderella/person/name.rb

Direct Known Subclasses

Assistant::Name, Idol::Name, Trainer::Name

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Name

Returns a new instance of Name.



8
9
10
11
12
13
# File 'lib/rubiderella/person/name.rb', line 8

def initialize(args)
  @last = args[:last]
  @last_kana = args[:last_kana]
  @first = args[:first]
  @first_kana = args[:first_kana]
end

Instance Attribute Details

#firstObject (readonly)

Returns the value of attribute first.



6
7
8
# File 'lib/rubiderella/person/name.rb', line 6

def first
  @first
end

#first_kanaObject (readonly)

Returns the value of attribute first_kana.



6
7
8
# File 'lib/rubiderella/person/name.rb', line 6

def first_kana
  @first_kana
end

#lastObject (readonly)

Returns the value of attribute last.



6
7
8
# File 'lib/rubiderella/person/name.rb', line 6

def last
  @last
end

#last_kanaObject (readonly)

Returns the value of attribute last_kana.



6
7
8
# File 'lib/rubiderella/person/name.rb', line 6

def last_kana
  @last_kana
end

Instance Method Details

#fullObject



15
16
17
# File 'lib/rubiderella/person/name.rb', line 15

def full
  @last + @first
end

#full_kanaObject



19
20
21
# File 'lib/rubiderella/person/name.rb', line 19

def full_kana
  @last_kana + @first_kana
end