class Shelly::Backup
Constants
- LIMIT
Attributes
code_name[R]
filename[R]
human_size[R]
kind[R]
size[R]
state[R]
Public Class Methods
new(attributes = {})
click to toggle source
# File lib/shelly/backup.rb, line 6 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
Public Instance Methods
download(callback)
click to toggle source
# File lib/shelly/backup.rb, line 15 def download(callback) url = shelly.download_backup_url(code_name, filename) shelly.download_file(code_name, filename, url, callback) end