Class: CardDB::DeckEntryMutationPayload

Inherits:
Resource
  • Object
show all
Defined in:
lib/carddb/collection.rb

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

#deckObject



1390
1391
1392
# File 'lib/carddb/collection.rb', line 1390

def deck
  @deck ||= Deck.new(data['deck'], client: client)
end

#entryObject



1394
1395
1396
# File 'lib/carddb/collection.rb', line 1394

def entry
  @entry ||= data['entry'] ? DeckEntry.new(data['entry'], client: client) : nil
end