Sha256: b9a38bf295ef9a2028b6bedc40f8a0e11bfdea03a7bef4ea90cde1a0ee0b1d1c

Contents?: true

Size: 985 Bytes

Versions: 1

Compression:

Stored size: 985 Bytes

Contents

module LayerVault
  class Client
    module Revisions
      def revision(organization_name, project_name, path, file_name, revision)
        get "#{organization_name}/#{project_name}/#{path}/#{file_name}/#{revision}"
      end

      def preview(organization_name, project_name, path, file_name, revision, options={})
        raise ClientParamsError.new("You must specify the :w (width) and :h (height) options for the previews.") unless options.fetch(:w, nil) && options.fetch(:h, nil)
        get "#{organization_name}/#{project_name}/#{path}/#{file_name}/#{revision}/preview", options
      end

      def meta(organization_name, project_name, path, file_name, revision)
        get "#{organization_name}/#{project_name}/#{path}/#{file_name}/#{revision}/meta"
      end

      def feedback_items(organization_name, project_name, path, file_name, revision)
        get "#{organization_name}/#{project_name}/#{path}/#{file_name}/#{revision}/feedback_items"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
layervault-0.1.2 lib/layervault/client/revisions.rb