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
1616
1617
1618
|
# File 'lib/carddb/collection.rb', line 1616
def account_id
data['accountId']
end
|
#created_at ⇒ Object
1628
1629
1630
|
# File 'lib/carddb/collection.rb', line 1628
def created_at
parse_time(data['createdAt'])
end
|
#created_by_account_id ⇒ Object
1624
1625
1626
|
# File 'lib/carddb/collection.rb', line 1624
def created_by_account_id
data['createdByAccountId']
end
|
#deck_id ⇒ Object
1612
1613
1614
|
# File 'lib/carddb/collection.rb', line 1612
def deck_id
data['deckId']
end
|
#id ⇒ Object
1608
1609
1610
|
# File 'lib/carddb/collection.rb', line 1608
def id
data['id']
end
|
#role ⇒ Object
1620
1621
1622
|
# File 'lib/carddb/collection.rb', line 1620
def role
data['role']
end
|
#updated_at ⇒ Object
1632
1633
1634
|
# File 'lib/carddb/collection.rb', line 1632
def updated_at
parse_time(data['updatedAt'])
end
|