Sha256: 7c8eca166da77d65fa6410dc202fe512e9dfd6f7d0b7c97aa2fb9c5cd6f250e3
Contents?: true
Size: 417 Bytes
Versions: 7
Compression:
Stored size: 417 Bytes
Contents
module Shelly class Backup < Model attr_reader :filename, :size, :human_size, :code_name def initialize(attributes = {}) @filename = attributes["filename"] @size = attributes["size"] @human_size = attributes["human_size"] @code_name = attributes["code_name"] end def download(callback) shelly.download_backup(code_name, filename, callback) end end end
Version data entries
7 entries across 7 versions & 1 rubygems