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
2043
2044
2045
|
# File 'lib/carddb/collection.rb', line 2043
def ambiguous
@ambiguous ||= (data['ambiguous'] || []).map { |entry| DeckImportAmbiguousEntry.new(entry, client: client) }
end
|
#entries ⇒ Object
2035
2036
2037
|
# File 'lib/carddb/collection.rb', line 2035
def entries
@entries ||= (data['entries'] || []).map { |entry| DeckImportEntry.new(entry, client: client) }
end
|
#unmatched ⇒ Object
2039
2040
2041
|
# File 'lib/carddb/collection.rb', line 2039
def unmatched
@unmatched ||= (data['unmatched'] || []).map { |entry| DeckImportUnmatchedEntry.new(entry, client: client) }
end
|