Sha256: 0faa354971badfb624e24d23ca5c46785fb935583e59e02291e0cf104d13390e
Contents?: true
Size: 832 Bytes
Versions: 1
Compression:
Stored size: 832 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 def previews(width, height) LayerVault.client.previews(context.organization, context.project, context.folder_path, context.file_name, w: width, h: height) end def revisions(options={}) LayerVault.client.revisions(context.organization, context.project, context.folder_path, context.file_name, first_seen: options[:first_seen], last_seen: options[:last_seen]) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
layervault-0.1.2 | lib/layervault/file.rb |