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
928
|
# File 'lib/carddb/collection.rb', line 928
def expires_at = parse_time(data['expiresAt'])
|
#file ⇒ Object
930
931
932
|
# File 'lib/carddb/collection.rb', line 930
def file
@file ||= data['file'] ? File.new(data['file'], client: client) : nil
end
|
#upload_url ⇒ Object
927
|
# File 'lib/carddb/collection.rb', line 927
def upload_url = data['uploadUrl']
|