Sha256: e2d71fea1afdaf23aae580aeabb6e83ef6b147ef7a0dfdda98ef90c8c657615f
Contents?: true
Size: 589 Bytes
Versions: 67
Compression:
Stored size: 589 Bytes
Contents
module Shelly class Backup < Model LIMIT = 10 attr_reader :filename, :size, :human_size, :code_name, :kind, :state def initialize(attributes = {}) @filename = attributes["filename"] @size = attributes["size"] @human_size = attributes["human_size"] @code_name = attributes["code_name"] @kind = attributes["kind"] @state = attributes["state"] end def download(callback) url = shelly.download_backup_url(code_name, filename) shelly.download_file(code_name, filename, url, callback) end end end
Version data entries
67 entries across 67 versions & 1 rubygems