lib/mollie/list.rb in mollie-api-ruby-4.0.1 vs lib/mollie/list.rb in mollie-api-ruby-4.1.0
- old
+ new
@@ -18,9 +18,17 @@
@items = items.map do |attributes|
klass.new attributes
end
end
+ def [](index)
+ @items[index]
+ end
+
+ def size
+ @items.size
+ end
+
def each(&block)
@items.each(&block)
end
def next(options = {})