Sha256: 9f86fc4d4a278a1f3fa15747cb20c430cbe7bfecf5b156be1c768b5094a21d44
Contents?: true
Size: 511 Bytes
Versions: 4
Compression:
Stored size: 511 Bytes
Contents
module Shelly class Backup < Model 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
shelly-0.1.21 | lib/shelly/backup.rb |
shelly-0.1.21.pre | lib/shelly/backup.rb |
shelly-0.1.20 | lib/shelly/backup.rb |
shelly-0.1.19 | lib/shelly/backup.rb |