Class: CardDB::File
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
#content_type ⇒ Object
915
|
# File 'lib/carddb/collection.rb', line 915
def content_type = data['contentType']
|
#created_at ⇒ Object
922
|
# File 'lib/carddb/collection.rb', line 922
def created_at = parse_time(data['createdAt'])
|
#entity_id ⇒ Object
920
|
# File 'lib/carddb/collection.rb', line 920
def entity_id = data['entityId']
|
#entity_type ⇒ Object
919
|
# File 'lib/carddb/collection.rb', line 919
def entity_type = data['entityType']
|
#filename ⇒ Object
914
|
# File 'lib/carddb/collection.rb', line 914
def filename = data['filename']
|
#id ⇒ Object
912
|
# File 'lib/carddb/collection.rb', line 912
def id = data['id']
|
#key ⇒ Object
913
|
# File 'lib/carddb/collection.rb', line 913
def key = data['key']
|
#public? ⇒ Boolean
918
|
# File 'lib/carddb/collection.rb', line 918
def public? = !!data['isPublic']
|
#size ⇒ Object
916
|
# File 'lib/carddb/collection.rb', line 916
def size = data['size']
|
#status ⇒ Object
917
|
# File 'lib/carddb/collection.rb', line 917
def status = data['status']
|
#updated_at ⇒ Object
923
|
# File 'lib/carddb/collection.rb', line 923
def updated_at = parse_time(data['updatedAt'])
|
#url ⇒ Object
921
|
# File 'lib/carddb/collection.rb', line 921
def url = data['url']
|