Class: Jekyll::AutoScout24::Prices
- Inherits:
-
Liquid::Drop
- Object
- Liquid::Drop
- Jekyll::AutoScout24::Prices
- Includes:
- Enumerable
- Defined in:
- lib/jekyll-autoscout24/backup_reader.rb
Instance Attribute Summary collapse
-
#node ⇒ Object
readonly
Returns the value of attribute node.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(node) ⇒ Prices
constructor
ctor.
Constructor Details
#initialize(node) ⇒ Prices
ctor
92 93 94 |
# File 'lib/jekyll-autoscout24/backup_reader.rb', line 92 def initialize(node) @node = node end |
Instance Attribute Details
#node ⇒ Object (readonly)
Returns the value of attribute node.
89 90 91 |
# File 'lib/jekyll-autoscout24/backup_reader.rb', line 89 def node @node end |
Instance Method Details
#each ⇒ Object
96 97 98 99 100 |
# File 'lib/jekyll-autoscout24/backup_reader.rb', line 96 def each @node.locate('price').each do |n| yield Entry.new(n) end end |