Sha256: 1e1a3393d2006bc24dcd32a47ea91d8be686580af8112a048002fd3d9f11c0ba
Contents?: true
Size: 410 Bytes
Versions: 2
Compression:
Stored size: 410 Bytes
Contents
require 'rmega/nodes/node' require 'rmega/nodes/deletable' require 'rmega/nodes/downloadable' module Rmega module Nodes class File < Node include Deletable include Downloadable def storage_url @storage_url ||= data['g'] || request(a: 'g', g: 1, n: handle)['g'] end def size data['s'] end def filesize size end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rmega-0.1.7 | lib/rmega/nodes/file.rb |
rmega-0.1.6 | lib/rmega/nodes/file.rb |