Class: Epuber::OpfFile::SpineItem
- Inherits:
-
Object
- Object
- Epuber::OpfFile::SpineItem
- Defined in:
- lib/epuber/from_file/opf_file.rb
Instance Attribute Summary collapse
Class Method Summary collapse
Instance Method Summary collapse
- #==(other) ⇒ Boolean
-
#initialize(idref, linear) ⇒ SpineItem
constructor
A new instance of SpineItem.
Constructor Details
#initialize(idref, linear) ⇒ SpineItem
Returns a new instance of SpineItem.
55 56 57 58 |
# File 'lib/epuber/from_file/opf_file.rb', line 55 def initialize(idref, linear) @idref = idref @linear = linear end |
Instance Attribute Details
#idref ⇒ String
49 50 51 |
# File 'lib/epuber/from_file/opf_file.rb', line 49 def idref @idref end |
#linear ⇒ String
53 54 55 |
# File 'lib/epuber/from_file/opf_file.rb', line 53 def linear @linear end |
Class Method Details
.from_node(node) ⇒ SpineItem
72 73 74 |
# File 'lib/epuber/from_file/opf_file.rb', line 72 def self.from_node(node) new(node['idref'], node['linear']) end |
Instance Method Details
#==(other) ⇒ Boolean
64 65 66 |
# File 'lib/epuber/from_file/opf_file.rb', line 64 def ==(other) @idref == other.idref end |