Sha256: 160f28cdccb1a6ea055aa5c3ad971ed85197caa2035c51320b6b88013dafb6e6

Contents?: true

Size: 463 Bytes

Versions: 56

Compression:

Stored size: 463 Bytes

Contents

module Shelly
  class Backup < Model
    attr_reader :filename, :size, :human_size, :code_name, :kind

    def initialize(attributes = {})
      @filename   = attributes["filename"]
      @size       = attributes["size"]
      @human_size = attributes["human_size"]
      @code_name  = attributes["code_name"]
      @kind       = attributes["kind"]
    end

    def download(callback)
      shelly.download_backup(code_name, filename, callback)
    end
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
shelly-0.0.62 lib/shelly/backup.rb
shelly-0.0.61 lib/shelly/backup.rb
shelly-0.0.60 lib/shelly/backup.rb
shelly-0.0.59 lib/shelly/backup.rb
shelly-0.0.58 lib/shelly/backup.rb
shelly-0.0.57 lib/shelly/backup.rb
shelly-0.0.56 lib/shelly/backup.rb
shelly-0.0.55 lib/shelly/backup.rb
shelly-0.0.55.pre lib/shelly/backup.rb
shelly-0.0.54 lib/shelly/backup.rb
shelly-0.0.53 lib/shelly/backup.rb
shelly-0.0.52 lib/shelly/backup.rb
shelly-0.0.51.pre lib/shelly/backup.rb
shelly-0.0.51 lib/shelly/backup.rb
shelly-0.0.50.pre2 lib/shelly/backup.rb
shelly-0.0.50.pre lib/shelly/backup.rb
shelly-0.0.50 lib/shelly/backup.rb
shelly-0.0.49.pre lib/shelly/backup.rb
shelly-0.0.49 lib/shelly/backup.rb
shelly-0.0.48 lib/shelly/backup.rb