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
925
|
# File 'lib/carddb/collection.rb', line 925
def content_type = data['contentType']
|
#created_at ⇒ Object
932
|
# File 'lib/carddb/collection.rb', line 932
def created_at = parse_time(data['createdAt'])
|
#entity_id ⇒ Object
930
|
# File 'lib/carddb/collection.rb', line 930
def entity_id = data['entityId']
|
#entity_type ⇒ Object
929
|
# File 'lib/carddb/collection.rb', line 929
def entity_type = data['entityType']
|
#filename ⇒ Object
924
|
# File 'lib/carddb/collection.rb', line 924
def filename = data['filename']
|
#id ⇒ Object
922
|
# File 'lib/carddb/collection.rb', line 922
def id = data['id']
|
#key ⇒ Object
923
|
# File 'lib/carddb/collection.rb', line 923
def key = data['key']
|
#public? ⇒ Boolean
928
|
# File 'lib/carddb/collection.rb', line 928
def public? = !!data['isPublic']
|
#size ⇒ Object
926
|
# File 'lib/carddb/collection.rb', line 926
def size = data['size']
|
#status ⇒ Object
927
|
# File 'lib/carddb/collection.rb', line 927
def status = data['status']
|
#updated_at ⇒ Object
933
|
# File 'lib/carddb/collection.rb', line 933
def updated_at = parse_time(data['updatedAt'])
|
#url ⇒ Object
931
|
# File 'lib/carddb/collection.rb', line 931
def url = data['url']
|