Class: Counterparty::BetExpiration

Inherits:
CounterResource show all
Defined in:
lib/counterparty/resources.rb

Overview

An object that describes the expiration of a bet created by the source address.

Instance Attribute Summary collapse

Attributes inherited from CounterResource

#allow_unconfirmed_inputs, #encoding, #fee, #fee_per_kb, #pubkey, #result_attributes

Method Summary

Methods inherited from CounterResource

#==, api_name, bitcoin, find, #initialize, #save!, to_create_request, to_get_request, #to_raw_tx, #to_signed_tx

Constructor Details

This class inherits a constructor from Counterparty::CounterResource

Instance Attribute Details

#bet_hashObject

bet_hash (string): The transaction hash of the bet expiriing



632
633
634
# File 'lib/counterparty/resources.rb', line 632

def bet_hash
  @bet_hash
end

#bet_indexObject

(integer): The transaction index of the bet expiring



629
630
631
# File 'lib/counterparty/resources.rb', line 629

def bet_index
  @bet_index
end

#block_indexObject

(integer): The block index (block number in the block chain) when this expiration occurred



636
637
638
# File 'lib/counterparty/resources.rb', line 636

def block_index
  @block_index
end

#sourceObject

(string): The source address that created the bet



639
640
641
# File 'lib/counterparty/resources.rb', line 639

def source
  @source
end