Sha256: 541008462225baf99cdcae8ceb1b6bcf86d6018182f64fab456e21346b0831a5
Contents?: true
Size: 341 Bytes
Versions: 1
Compression:
Stored size: 341 Bytes
Contents
module FileIoClient class File def initialize(json) @parsed = JSON.parse(json) end def success @parsed['success'] end alias_method :"success?", :success def key @parsed['key'] end def expiry @parsed['expiry'] end def download_link @parsed['link'] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
file_io_client-0.0.2 | lib/file_io_client/file.rb |