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



1960
1961
1962
# File 'lib/carddb/collection.rb', line 1960

def 
  data['accountId']
end

#created_atObject



1972
1973
1974
# File 'lib/carddb/collection.rb', line 1972

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

#created_by_account_idObject



1968
1969
1970
# File 'lib/carddb/collection.rb', line 1968

def 
  data['createdByAccountId']
end

#deck_idObject



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

def deck_id
  data['deckId']
end

#idObject



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

def id
  data['id']
end

#roleObject



1964
1965
1966
# File 'lib/carddb/collection.rb', line 1964

def role
  data['role']
end

#updated_atObject



1976
1977
1978
# File 'lib/carddb/collection.rb', line 1976

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