Sha256: b47df9cb3bb9852db336a4d5b8f4862f2e8c4624a9872f8cb9a8225ce7fb08fe

Contents?: true

Size: 506 Bytes

Versions: 18

Compression:

Stored size: 506 Bytes

Contents

module Arrest
  class IdsCollection

    def initialize(parent, ids_url)
      @collection = nil
      @parent = parent
      @url = ids_url
    end

    def method_missing(*args, &block)
      collection.send(*args, &block)
    end

    def inspect
      collection.inspect
    end

    private

    def collection
      unless @collection

        r = @parent.class.source().get(@parent.context, "#{@url}")
        @collection = @parent.class.body_root(r)

      end
      @collection
    end

  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
arrest-0.0.91 lib/arrest/helper/ids_collection.rb
arrest-0.0.90 lib/arrest/helper/ids_collection.rb
arrest-0.0.89 lib/arrest/helper/ids_collection.rb
arrest-0.0.88 lib/arrest/helper/ids_collection.rb
arrest-0.0.87 lib/arrest/helper/ids_collection.rb
arrest-0.0.86 lib/arrest/helper/ids_collection.rb
arrest-0.0.85 lib/arrest/helper/ids_collection.rb
arrest-0.0.84 lib/arrest/helper/ids_collection.rb
arrest-0.0.83.crud lib/arrest/helper/ids_collection.rb
arrest-0.0.83.1 lib/arrest/helper/ids_collection.rb
arrest-0.0.83 lib/arrest/helper/ids_collection.rb
arrest-0.0.82 lib/arrest/helper/ids_collection.rb
arrest-0.0.80 lib/arrest/helper/ids_collection.rb
arrest-0.0.79 lib/arrest/helper/ids_collection.rb
arrest-0.0.78 lib/arrest/helper/ids_collection.rb
arrest-0.0.77 lib/arrest/helper/ids_collection.rb
arrest-0.0.76 lib/arrest/helper/ids_collection.rb
arrest-0.0.75 lib/arrest/helper/ids_collection.rb