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



1940
1941
1942
# File 'lib/carddb/collection.rb', line 1940

def 
  data['accountId']
end

#created_atObject



1952
1953
1954
# File 'lib/carddb/collection.rb', line 1952

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

#created_by_account_idObject



1948
1949
1950
# File 'lib/carddb/collection.rb', line 1948

def 
  data['createdByAccountId']
end

#deck_idObject



1936
1937
1938
# File 'lib/carddb/collection.rb', line 1936

def deck_id
  data['deckId']
end

#idObject



1932
1933
1934
# File 'lib/carddb/collection.rb', line 1932

def id
  data['id']
end

#roleObject



1944
1945
1946
# File 'lib/carddb/collection.rb', line 1944

def role
  data['role']
end

#updated_atObject



1956
1957
1958
# File 'lib/carddb/collection.rb', line 1956

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