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.1.18 lib/shelly/backup.rb
shelly-0.1.17 lib/shelly/backup.rb
shelly-0.1.16 lib/shelly/backup.rb
shelly-0.1.15 lib/shelly/backup.rb
shelly-0.1.14 lib/shelly/backup.rb
shelly-0.1.13 lib/shelly/backup.rb
shelly-0.1.12 lib/shelly/backup.rb
shelly-0.1.11 lib/shelly/backup.rb
shelly-0.1.10 lib/shelly/backup.rb
shelly-0.1.9 lib/shelly/backup.rb
shelly-0.1.8 lib/shelly/backup.rb
shelly-0.1.7 lib/shelly/backup.rb
shelly-0.1.6 lib/shelly/backup.rb
shelly-0.1.5 lib/shelly/backup.rb
shelly-0.1.4.pre2 lib/shelly/backup.rb
shelly-0.1.4.pre lib/shelly/backup.rb
shelly-0.1.3 lib/shelly/backup.rb
shelly-0.1.2 lib/shelly/backup.rb
shelly-0.1.1 lib/shelly/backup.rb
shelly-0.1.0 lib/shelly/backup.rb