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



1877
1878
1879
# File 'lib/carddb/collection.rb', line 1877

def 
  data['accountId']
end

#created_atObject



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

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

#created_by_account_idObject



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

def 
  data['createdByAccountId']
end

#deck_idObject



1873
1874
1875
# File 'lib/carddb/collection.rb', line 1873

def deck_id
  data['deckId']
end

#idObject



1869
1870
1871
# File 'lib/carddb/collection.rb', line 1869

def id
  data['id']
end

#roleObject



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

def role
  data['role']
end

#updated_atObject



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

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