Class: Jekyll::AutoScout24::Prices

Inherits:
Liquid::Drop
  • Object
show all
Includes:
Enumerable
Defined in:
lib/jekyll-autoscout24/backup_reader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nodeObject (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

#eachObject



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