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, find, #initialize, #save!, to_create_request, to_do_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



613
614
615
# File 'lib/counterparty/resources.rb', line 613

def bet_hash
  @bet_hash
end

#bet_indexObject

(integer): The transaction index of the bet expiring



610
611
612
# File 'lib/counterparty/resources.rb', line 610

def bet_index
  @bet_index
end

#block_indexObject

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



617
618
619
# File 'lib/counterparty/resources.rb', line 617

def block_index
  @block_index
end

#sourceObject

(string): The source address that created the bet



620
621
622
# File 'lib/counterparty/resources.rb', line 620

def source
  @source
end