Sha256: 69cda78f0db53d8dcac8ba38fc204f19a5ee2629ba2c4d59a1076c1c0cd1fede
Contents?: true
Size: 526 Bytes
Versions: 49
Compression:
Stored size: 526 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) shelly.download_backup(code_name, filename, callback) end end end
Version data entries
49 entries across 49 versions & 1 rubygems