Class: CardDB::DeckHydrateEntriesPayload
Instance Attribute Summary
Attributes inherited from Resource
#client, #data
Instance Method Summary
collapse
Methods inherited from Resource
#[], #initialize, #key?, #to_h, #to_json
Instance Method Details
#ambiguous ⇒ Object
1503
1504
1505
|
# File 'lib/carddb/collection.rb', line 1503
def ambiguous
@ambiguous ||= (data['ambiguous'] || []).map { |entry| DeckImportAmbiguousEntry.new(entry, client: client) }
end
|
#entries ⇒ Object
1495
1496
1497
|
# File 'lib/carddb/collection.rb', line 1495
def entries
@entries ||= (data['entries'] || []).map { |entry| DeckImportEntry.new(entry, client: client) }
end
|
#unmatched ⇒ Object
1499
1500
1501
|
# File 'lib/carddb/collection.rb', line 1499
def unmatched
@unmatched ||= (data['unmatched'] || []).map { |entry| DeckImportUnmatchedEntry.new(entry, client: client) }
end
|