Class: MoneroRPC::TransferClass
- Inherits:
-
Object
- Object
- MoneroRPC::TransferClass
- Defined in:
- lib/monero_rpc/transfer_class.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#confirmations ⇒ Object
Returns the value of attribute confirmations.
-
#destinations ⇒ Object
Returns the value of attribute destinations.
-
#double_spend_seen ⇒ Object
Returns the value of attribute double_spend_seen.
-
#fee ⇒ Object
Returns the value of attribute fee.
-
#height ⇒ Object
Returns the value of attribute height.
-
#note ⇒ Object
Returns the value of attribute note.
-
#payment_id ⇒ Object
Returns the value of attribute payment_id.
-
#subaddr_index ⇒ Object
Returns the value of attribute subaddr_index.
-
#subaddr_indices ⇒ Object
Returns the value of attribute subaddr_indices.
-
#suggested_confirmations_threshold ⇒ Object
Returns the value of attribute suggested_confirmations_threshold.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
-
#txid ⇒ Object
Returns the value of attribute txid.
-
#type ⇒ Object
Returns the value of attribute type.
-
#unlock_time ⇒ Object
Returns the value of attribute unlock_time.
Instance Method Summary collapse
- #confirmed? ⇒ Boolean
-
#initialize(args = {}) ⇒ TransferClass
constructor
A new instance of TransferClass.
- #locked? ⇒ Boolean
- #pending? ⇒ Boolean
Constructor Details
#initialize(args = {}) ⇒ TransferClass
Returns a new instance of TransferClass.
8 9 10 11 12 |
# File 'lib/monero_rpc/transfer_class.rb', line 8 def initialize(args={}) args.each do |k,v| self.send("#{k}=", v) end end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
4 5 6 |
# File 'lib/monero_rpc/transfer_class.rb', line 4 def address @address end |
#amount ⇒ Object
Returns the value of attribute amount.
4 5 6 |
# File 'lib/monero_rpc/transfer_class.rb', line 4 def amount @amount end |
#confirmations ⇒ Object
Returns the value of attribute confirmations.
4 5 6 |
# File 'lib/monero_rpc/transfer_class.rb', line 4 def confirmations @confirmations end |
#destinations ⇒ Object
Returns the value of attribute destinations.
4 5 6 |
# File 'lib/monero_rpc/transfer_class.rb', line 4 def destinations @destinations end |
#double_spend_seen ⇒ Object
Returns the value of attribute double_spend_seen.
4 5 6 |
# File 'lib/monero_rpc/transfer_class.rb', line 4 def double_spend_seen @double_spend_seen end |
#fee ⇒ Object
Returns the value of attribute fee.
4 5 6 |
# File 'lib/monero_rpc/transfer_class.rb', line 4 def fee @fee end |
#height ⇒ Object
Returns the value of attribute height.
4 5 6 |
# File 'lib/monero_rpc/transfer_class.rb', line 4 def height @height end |
#note ⇒ Object
Returns the value of attribute note.
4 5 6 |
# File 'lib/monero_rpc/transfer_class.rb', line 4 def note @note end |
#payment_id ⇒ Object
Returns the value of attribute payment_id.
4 5 6 |
# File 'lib/monero_rpc/transfer_class.rb', line 4 def payment_id @payment_id end |
#subaddr_index ⇒ Object
Returns the value of attribute subaddr_index.
4 5 6 |
# File 'lib/monero_rpc/transfer_class.rb', line 4 def subaddr_index @subaddr_index end |
#subaddr_indices ⇒ Object
Returns the value of attribute subaddr_indices.
4 5 6 |
# File 'lib/monero_rpc/transfer_class.rb', line 4 def subaddr_indices @subaddr_indices end |
#suggested_confirmations_threshold ⇒ Object
Returns the value of attribute suggested_confirmations_threshold.
4 5 6 |
# File 'lib/monero_rpc/transfer_class.rb', line 4 def suggested_confirmations_threshold @suggested_confirmations_threshold end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
4 5 6 |
# File 'lib/monero_rpc/transfer_class.rb', line 4 def @timestamp end |
#txid ⇒ Object
Returns the value of attribute txid.
4 5 6 |
# File 'lib/monero_rpc/transfer_class.rb', line 4 def txid @txid end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/monero_rpc/transfer_class.rb', line 4 def type @type end |
#unlock_time ⇒ Object
Returns the value of attribute unlock_time.
4 5 6 |
# File 'lib/monero_rpc/transfer_class.rb', line 4 def unlock_time @unlock_time end |
Instance Method Details
#confirmed? ⇒ Boolean
14 15 16 |
# File 'lib/monero_rpc/transfer_class.rb', line 14 def confirmed? confirmations >= 10 end |
#locked? ⇒ Boolean
22 23 24 |
# File 'lib/monero_rpc/transfer_class.rb', line 22 def locked? raise "TODO" end |
#pending? ⇒ Boolean
18 19 20 |
# File 'lib/monero_rpc/transfer_class.rb', line 18 def pending? height == 0 end |