Class: Elibri::ONIX::Release_3_0::Imprint

Inherits:
Object
  • Object
show all
Defined in:
lib/elibri_onix/onix_3_0/imprint.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Imprint

Returns a new instance of Imprint.



8
9
10
11
# File 'lib/elibri_onix/onix_3_0/imprint.rb', line 8

def initialize(data)
  @to_xml = data.to_s
  @name = data.at_css('ImprintName')&.text
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/elibri_onix/onix_3_0/imprint.rb', line 6

def name
  @name
end

#to_xmlObject

Returns the value of attribute to_xml.



6
7
8
# File 'lib/elibri_onix/onix_3_0/imprint.rb', line 6

def to_xml
  @to_xml
end