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
56 57 58 |
# File 'lib/jekyll-autoscout24/backup_reader.rb', line 56 def initialize(node) @node = node end |
Instance Attribute Details
#node ⇒ Object (readonly)
Returns the value of attribute node.
53 54 55 |
# File 'lib/jekyll-autoscout24/backup_reader.rb', line 53 def node @node end |
Instance Method Details
#each ⇒ Object
60 61 62 63 64 |
# File 'lib/jekyll-autoscout24/backup_reader.rb', line 60 def each @node.locate('price').each do |n| yield Entry.new(n) end end |