Class: Epuber::NavFile::LandmarkItem
- Inherits:
-
Object
- Object
- Epuber::NavFile::LandmarkItem
- Defined in:
- lib/epuber/from_file/nav_file.rb
Instance Attribute Summary collapse
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(href, type) ⇒ LandmarkItem
constructor
A new instance of LandmarkItem.
Constructor Details
#initialize(href, type) ⇒ LandmarkItem
Returns a new instance of LandmarkItem.
52 53 54 55 |
# File 'lib/epuber/from_file/nav_file.rb', line 52 def initialize(href, type) @href = href @type = type end |
Instance Attribute Details
#href ⇒ String
43 44 45 |
# File 'lib/epuber/from_file/nav_file.rb', line 43 def href @href end |
#type ⇒ String
47 48 49 |
# File 'lib/epuber/from_file/nav_file.rb', line 47 def type @type end |
Class Method Details
.from_node(node) ⇒ LandmarkItem
61 62 63 |
# File 'lib/epuber/from_file/nav_file.rb', line 61 def self.from_node(node) new(node['href'], node['type']) end |