Class: CardDB::PresignedUpload
Instance Attribute Summary
Attributes inherited from Resource
#client, #data
Instance Method Summary
collapse
Methods inherited from Resource
#[], #initialize, #key?, #to_h, #to_json
Instance Method Details
#expires_at ⇒ Object
938
|
# File 'lib/carddb/collection.rb', line 938
def expires_at = parse_time(data['expiresAt'])
|
#file ⇒ Object
940
941
942
|
# File 'lib/carddb/collection.rb', line 940
def file
@file ||= data['file'] ? File.new(data['file'], client: client) : nil
end
|
#upload_url ⇒ Object
937
|
# File 'lib/carddb/collection.rb', line 937
def upload_url = data['uploadUrl']
|