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

Version Path
shelly-0.0.41.pre lib/shelly/backup.rb
shelly-0.0.40 lib/shelly/backup.rb
shelly-0.0.39 lib/shelly/backup.rb
shelly-0.0.38 lib/shelly/backup.rb
shelly-0.0.37 lib/shelly/backup.rb
shelly-0.0.36 lib/shelly/backup.rb
shelly-0.0.34 lib/shelly/backup.rb