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
1940
1941
1942
|
# File 'lib/carddb/collection.rb', line 1940
def account_id
data['accountId']
end
|
#created_at ⇒ Object
1952
1953
1954
|
# File 'lib/carddb/collection.rb', line 1952
def created_at
parse_time(data['createdAt'])
end
|
#created_by_account_id ⇒ Object
1948
1949
1950
|
# File 'lib/carddb/collection.rb', line 1948
def created_by_account_id
data['createdByAccountId']
end
|
#deck_id ⇒ Object
1936
1937
1938
|
# File 'lib/carddb/collection.rb', line 1936
def deck_id
data['deckId']
end
|
#id ⇒ Object
1932
1933
1934
|
# File 'lib/carddb/collection.rb', line 1932
def id
data['id']
end
|
#role ⇒ Object
1944
1945
1946
|
# File 'lib/carddb/collection.rb', line 1944
def role
data['role']
end
|
#updated_at ⇒ Object
1956
1957
1958
|
# File 'lib/carddb/collection.rb', line 1956
def updated_at
parse_time(data['updatedAt'])
end
|