Class: ModsDisplay::Name::Person
- Inherits:
-
Object
- Object
- ModsDisplay::Name::Person
- Defined in:
- lib/mods_display/fields/name.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(data) ⇒ Person
constructor
A new instance of Person.
- #to_s ⇒ Object
Constructor Details
#initialize(data) ⇒ Person
Returns a new instance of Person.
164 165 166 |
# File 'lib/mods_display/fields/name.rb', line 164 def initialize(data) @name = data[:name] end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
163 164 165 |
# File 'lib/mods_display/fields/name.rb', line 163 def name @name end |
Instance Method Details
#to_s ⇒ Object
168 169 170 |
# File 'lib/mods_display/fields/name.rb', line 168 def to_s @name end |