Class: CardDB::DeckSectionValuation

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

Overview

Wrapper for one deck section's valuation and pricing coverage

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

#missing_entry_countObject



2236
# File 'lib/carddb/collection.rb', line 2236

def missing_entry_count = data['missingEntryCount']

#missing_quantityObject



2239
# File 'lib/carddb/collection.rb', line 2239

def missing_quantity = data['missingQuantity']

#priced_entry_countObject



2235
# File 'lib/carddb/collection.rb', line 2235

def priced_entry_count = data['pricedEntryCount']

#priced_quantityObject



2238
# File 'lib/carddb/collection.rb', line 2238

def priced_quantity = data['pricedQuantity']

#priced_subtotalObject



2241
2242
2243
# File 'lib/carddb/collection.rb', line 2241

def priced_subtotal
  @priced_subtotal ||= Money.new(data['pricedSubtotal'], client: client)
end

#sectionObject



2232
# File 'lib/carddb/collection.rb', line 2232

def section = data['section']

#statusObject



2233
# File 'lib/carddb/collection.rb', line 2233

def status = data['status']

#total_entry_countObject



2234
# File 'lib/carddb/collection.rb', line 2234

def total_entry_count = data['totalEntryCount']

#total_quantityObject



2237
# File 'lib/carddb/collection.rb', line 2237

def total_quantity = data['totalQuantity']