class XRBP::NodeStore::Issue
Attributes
account[R]
currency[R]
Public Class Methods
new(currency, account)
click to toggle source
# File lib/xrbp/nodestore/protocol/issue.rb, line 6 def initialize(currency, account) @currency = currency @account = account end
Public Instance Methods
inspect()
click to toggle source
# File lib/xrbp/nodestore/protocol/issue.rb, line 19 def inspect c = currency == NodeStore.no_currency ? '' : currency == NodeStore.xrp_currency ? 'XRP' : "#{currency}" a = account == Crypto.no_account ? '' : account == Crypto.xrp_account ? '' : "@#{account}" "#{c}#{a}" end
to_h()
click to toggle source
# File lib/xrbp/nodestore/protocol/issue.rb, line 11 def to_h {:currency => currency, :account => account} end
xrp?()
click to toggle source
# File lib/xrbp/nodestore/protocol/issue.rb, line 15 def xrp? self == NodeStore.xrp_issue end