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



1890
1891
1892
# File 'lib/carddb/collection.rb', line 1890

def 
  data['accountId']
end

#created_atObject



1902
1903
1904
# File 'lib/carddb/collection.rb', line 1902

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

#created_by_account_idObject



1898
1899
1900
# File 'lib/carddb/collection.rb', line 1898

def 
  data['createdByAccountId']
end

#deck_idObject



1886
1887
1888
# File 'lib/carddb/collection.rb', line 1886

def deck_id
  data['deckId']
end

#idObject



1882
1883
1884
# File 'lib/carddb/collection.rb', line 1882

def id
  data['id']
end

#roleObject



1894
1895
1896
# File 'lib/carddb/collection.rb', line 1894

def role
  data['role']
end

#updated_atObject



1906
1907
1908
# File 'lib/carddb/collection.rb', line 1906

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