Class: CardDB::PresignedUpload

Inherits:
Resource
  • Object
show all
Defined in:
lib/carddb/collection.rb

Instance Attribute Summary

Attributes inherited from Resource

#client, #data

Instance Method Summary collapse

Methods inherited from Resource

#[], #initialize, #key?, #to_h, #to_json

Constructor Details

This class inherits a constructor from CardDB::Resource

Instance Method Details

#expires_atObject



928
# File 'lib/carddb/collection.rb', line 928

def expires_at = parse_time(data['expiresAt'])

#fileObject



930
931
932
# File 'lib/carddb/collection.rb', line 930

def file
  @file ||= data['file'] ? File.new(data['file'], client: client) : nil
end

#upload_urlObject



927
# File 'lib/carddb/collection.rb', line 927

def upload_url = data['uploadUrl']