Class: Jekyll::AutoScout24::Equipments

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) ⇒ Equipments

ctor



75
76
77
# File 'lib/jekyll-autoscout24/backup_reader.rb', line 75

def initialize(node)
  @node = node
end

Instance Attribute Details

#nodeObject (readonly)

Returns the value of attribute node.



72
73
74
# File 'lib/jekyll-autoscout24/backup_reader.rb', line 72

def node
  @node
end

Instance Method Details

#eachObject



79
80
81
82
83
# File 'lib/jekyll-autoscout24/backup_reader.rb', line 79

def each
  @node.locate("equipment").each do |n|
    yield Entry.new(n)
  end
end