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



965
966
967
# File 'lib/carddb/collection.rb', line 965

def 
  data['accountId']
end

#created_atObject



977
978
979
# File 'lib/carddb/collection.rb', line 977

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

#created_by_account_idObject



973
974
975
# File 'lib/carddb/collection.rb', line 973

def 
  data['createdByAccountId']
end

#deck_idObject



961
962
963
# File 'lib/carddb/collection.rb', line 961

def deck_id
  data['deckId']
end

#idObject



957
958
959
# File 'lib/carddb/collection.rb', line 957

def id
  data['id']
end

#roleObject



969
970
971
# File 'lib/carddb/collection.rb', line 969

def role
  data['role']
end

#updated_atObject



981
982
983
# File 'lib/carddb/collection.rb', line 981

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