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



56
57
58
# File 'lib/jekyll-autoscout24/backup_reader.rb', line 56

def initialize(node)
  @node = node
end

Instance Attribute Details

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

#eachObject



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