Class: Elibri::ONIX::Release_3_0::Imprint
- Inherits:
-
Object
- Object
- Elibri::ONIX::Release_3_0::Imprint
- Defined in:
- lib/elibri_onix/onix_3_0/imprint.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#to_xml ⇒ Object
Returns the value of attribute to_xml.
Instance Method Summary collapse
-
#initialize(data) ⇒ Imprint
constructor
A new instance of Imprint.
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
#name ⇒ Object
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_xml ⇒ Object
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 |