class Vertpig::Currency
Attributes
abbreviation[R]
active[R]
fee[R]
min_confirmation[R]
minimum_confirmation[R]
name[R]
raw[R]
transaction_fee[R]
Public Class Methods
all()
click to toggle source
# File lib/vertpig/currency.rb, line 17 def self.all client.get('public/getcurrencies').map{|data| new(data) } end
new(attrs = {})
click to toggle source
# File lib/vertpig/currency.rb, line 8 def initialize(attrs = {}) @name = attrs['CurrencyLong'] @abbreviation = attrs['Currency'] @transaction_fee = attrs['TxFee'] @minimum_confirmation = attrs['MinConfirmation'] @active = attrs['IsActive'] @raw = attrs end
Private Class Methods
client()
click to toggle source
# File lib/vertpig/currency.rb, line 23 def self.client @client ||= Vertpig.client end