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



955
956
957
# File 'lib/carddb/collection.rb', line 955

def 
  data['accountId']
end

#created_atObject



967
968
969
# File 'lib/carddb/collection.rb', line 967

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

#created_by_account_idObject



963
964
965
# File 'lib/carddb/collection.rb', line 963

def 
  data['createdByAccountId']
end

#deck_idObject



951
952
953
# File 'lib/carddb/collection.rb', line 951

def deck_id
  data['deckId']
end

#idObject



947
948
949
# File 'lib/carddb/collection.rb', line 947

def id
  data['id']
end

#roleObject



959
960
961
# File 'lib/carddb/collection.rb', line 959

def role
  data['role']
end

#updated_atObject



971
972
973
# File 'lib/carddb/collection.rb', line 971

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