Sha256: fd8149e419936d52bccfb06ee927bb0b3831b56754691ba4bce2d1fb91596a6b

Contents?: true

Size: 464 Bytes

Versions: 3

Compression:

Stored size: 464 Bytes

Contents

require 'instapaper/bookmark'
require 'instapaper/highlight'
require 'instapaper/user'

module Instapaper
  class BookmarkList
    include Virtus.value_object

    values do
      attribute :user, Instapaper::User
      attribute :bookmarks, Array[Instapaper::Bookmark]
      attribute :highlights, Array[Instapaper::Highlight]
      attribute :delete_ids, Array[Integer]
    end

    def each
      bookmarks.each { |bookmark| yield(bookmark) }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
instapaper-1.0.0 lib/instapaper/bookmark_list.rb
instapaper-1.0.0.pre3 lib/instapaper/bookmark_list.rb
instapaper-1.0.0.pre2 lib/instapaper/bookmark_list.rb