Sha256: df280718a1a31ccd5fd914bbeb14093ed234fae8b919a78fa548bb3329bff782

Contents?: true

Size: 439 Bytes

Versions: 2

Compression:

Stored size: 439 Bytes

Contents

module LayerVault
  class File < LayerVault::Model
    class << self
      def for(organization, project, folder_path, file_name)
        resp = MultiJson.decode(LayerVault.client.file(organization, project, folder_path, file_name))
        instance = build_associations(resp, :revisions)
        instance.set_context(organization: organization, project: project, folder_path: folder_path, file_name: file_name)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
layervault-0.1.1 lib/layervault/file.rb
layervault-0.1.0 lib/layervault/file.rb