Class: ModsDisplay::Name::Person

Inherits:
Object
  • Object
show all
Defined in:
lib/mods_display/fields/name.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject

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_sObject



168
169
170
# File 'lib/mods_display/fields/name.rb', line 168

def to_s
  @name
end