Class: CardDB::DeckHydrateEntriesPayload

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

#ambiguousObject



2304
2305
2306
# File 'lib/carddb/collection.rb', line 2304

def ambiguous
  @ambiguous ||= (data['ambiguous'] || []).map { |entry| DeckImportAmbiguousEntry.new(entry, client: client) }
end

#entriesObject



2296
2297
2298
# File 'lib/carddb/collection.rb', line 2296

def entries
  @entries ||= (data['entries'] || []).map { |entry| DeckImportEntry.new(entry, client: client) }
end

#unmatchedObject



2300
2301
2302
# File 'lib/carddb/collection.rb', line 2300

def unmatched
  @unmatched ||= (data['unmatched'] || []).map { |entry| DeckImportUnmatchedEntry.new(entry, client: client) }
end