Class: CardDB::Money

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

Overview

Wrapper for decimal money returned by valuation APIs

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

#amountObject



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

def amount = data['amount']

#currency_codeObject



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

def currency_code = data['currencyCode']