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



1616
1617
1618
# File 'lib/carddb/collection.rb', line 1616

def 
  data['accountId']
end

#created_atObject



1628
1629
1630
# File 'lib/carddb/collection.rb', line 1628

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

#created_by_account_idObject



1624
1625
1626
# File 'lib/carddb/collection.rb', line 1624

def 
  data['createdByAccountId']
end

#deck_idObject



1612
1613
1614
# File 'lib/carddb/collection.rb', line 1612

def deck_id
  data['deckId']
end

#idObject



1608
1609
1610
# File 'lib/carddb/collection.rb', line 1608

def id
  data['id']
end

#roleObject



1620
1621
1622
# File 'lib/carddb/collection.rb', line 1620

def role
  data['role']
end

#updated_atObject



1632
1633
1634
# File 'lib/carddb/collection.rb', line 1632

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