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
975
|
# File 'lib/carddb/collection.rb', line 975
def content_type = data['contentType']
|
#created_at ⇒ Object
982
|
# File 'lib/carddb/collection.rb', line 982
def created_at = parse_time(data['createdAt'])
|
#entity_id ⇒ Object
980
|
# File 'lib/carddb/collection.rb', line 980
def entity_id = data['entityId']
|
#entity_type ⇒ Object
979
|
# File 'lib/carddb/collection.rb', line 979
def entity_type = data['entityType']
|
#filename ⇒ Object
974
|
# File 'lib/carddb/collection.rb', line 974
def filename = data['filename']
|
#id ⇒ Object
972
|
# File 'lib/carddb/collection.rb', line 972
def id = data['id']
|
#key ⇒ Object
973
|
# File 'lib/carddb/collection.rb', line 973
def key = data['key']
|
#public? ⇒ Boolean
978
|
# File 'lib/carddb/collection.rb', line 978
def public? = !!data['isPublic']
|
#size ⇒ Object
976
|
# File 'lib/carddb/collection.rb', line 976
def size = data['size']
|
#status ⇒ Object
977
|
# File 'lib/carddb/collection.rb', line 977
def status = data['status']
|
#updated_at ⇒ Object
983
|
# File 'lib/carddb/collection.rb', line 983
def updated_at = parse_time(data['updatedAt'])
|
#url ⇒ Object
981
|
# File 'lib/carddb/collection.rb', line 981
def url = data['url']
|