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
1960
1961
1962
|
# File 'lib/carddb/collection.rb', line 1960
def account_id
data['accountId']
end
|
#created_at ⇒ Object
1972
1973
1974
|
# File 'lib/carddb/collection.rb', line 1972
def created_at
parse_time(data['createdAt'])
end
|
#created_by_account_id ⇒ Object
1968
1969
1970
|
# File 'lib/carddb/collection.rb', line 1968
def created_by_account_id
data['createdByAccountId']
end
|
#deck_id ⇒ Object
1956
1957
1958
|
# File 'lib/carddb/collection.rb', line 1956
def deck_id
data['deckId']
end
|
#id ⇒ Object
1952
1953
1954
|
# File 'lib/carddb/collection.rb', line 1952
def id
data['id']
end
|
#role ⇒ Object
1964
1965
1966
|
# File 'lib/carddb/collection.rb', line 1964
def role
data['role']
end
|
#updated_at ⇒ Object
1976
1977
1978
|
# File 'lib/carddb/collection.rb', line 1976
def updated_at
parse_time(data['updatedAt'])
end
|