Class: CardDB::DeckCollaborator
Overview
Wrapper for deck collaborator objects
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
#account_id ⇒ Object
1877
1878
1879
|
# File 'lib/carddb/collection.rb', line 1877
def account_id
data['accountId']
end
|
#created_at ⇒ Object
1889
1890
1891
|
# File 'lib/carddb/collection.rb', line 1889
def created_at
parse_time(data['createdAt'])
end
|
#created_by_account_id ⇒ Object
1885
1886
1887
|
# File 'lib/carddb/collection.rb', line 1885
def created_by_account_id
data['createdByAccountId']
end
|
#deck_id ⇒ Object
1873
1874
1875
|
# File 'lib/carddb/collection.rb', line 1873
def deck_id
data['deckId']
end
|
#id ⇒ Object
1869
1870
1871
|
# File 'lib/carddb/collection.rb', line 1869
def id
data['id']
end
|
#role ⇒ Object
1881
1882
1883
|
# File 'lib/carddb/collection.rb', line 1881
def role
data['role']
end
|
#updated_at ⇒ Object
1893
1894
1895
|
# File 'lib/carddb/collection.rb', line 1893
def updated_at
parse_time(data['updatedAt'])
end
|