Class: Mabmapper::MabXml::Subfield

Inherits:
Object
  • Object
show all
Defined in:
lib/mabmapper/mab_xml/subfield.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, value) ⇒ Subfield

Returns a new instance of Subfield.



6
7
8
9
# File 'lib/mabmapper/mab_xml/subfield.rb', line 6

def initialize(name, value)
  @name  = name
  @value = value
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/mabmapper/mab_xml/subfield.rb', line 4

def name
  @name
end

#valueObject (readonly)

Returns the value of attribute value.



4
5
6
# File 'lib/mabmapper/mab_xml/subfield.rb', line 4

def value
  @value
end