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
1890
1891
1892
|
# File 'lib/carddb/collection.rb', line 1890
def account_id
data['accountId']
end
|
#created_at ⇒ Object
1902
1903
1904
|
# File 'lib/carddb/collection.rb', line 1902
def created_at
parse_time(data['createdAt'])
end
|
#created_by_account_id ⇒ Object
1898
1899
1900
|
# File 'lib/carddb/collection.rb', line 1898
def created_by_account_id
data['createdByAccountId']
end
|
#deck_id ⇒ Object
1886
1887
1888
|
# File 'lib/carddb/collection.rb', line 1886
def deck_id
data['deckId']
end
|
#id ⇒ Object
1882
1883
1884
|
# File 'lib/carddb/collection.rb', line 1882
def id
data['id']
end
|
#role ⇒ Object
1894
1895
1896
|
# File 'lib/carddb/collection.rb', line 1894
def role
data['role']
end
|
#updated_at ⇒ Object
1906
1907
1908
|
# File 'lib/carddb/collection.rb', line 1906
def updated_at
parse_time(data['updatedAt'])
end
|