Class: CardDB::DeckCollaborator

Inherits:
Resource
  • Object
show all
Defined in:
lib/carddb/collection.rb

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

Constructor Details

This class inherits a constructor from CardDB::Resource

Instance Method Details

#account_idObject



1099
1100
1101
# File 'lib/carddb/collection.rb', line 1099

def 
  data['accountId']
end

#created_atObject



1111
1112
1113
# File 'lib/carddb/collection.rb', line 1111

def created_at
  parse_time(data['createdAt'])
end

#created_by_account_idObject



1107
1108
1109
# File 'lib/carddb/collection.rb', line 1107

def 
  data['createdByAccountId']
end

#deck_idObject



1095
1096
1097
# File 'lib/carddb/collection.rb', line 1095

def deck_id
  data['deckId']
end

#idObject



1091
1092
1093
# File 'lib/carddb/collection.rb', line 1091

def id
  data['id']
end

#roleObject



1103
1104
1105
# File 'lib/carddb/collection.rb', line 1103

def role
  data['role']
end

#updated_atObject



1115
1116
1117
# File 'lib/carddb/collection.rb', line 1115

def updated_at
  parse_time(data['updatedAt'])
end