Class: Counterparty::Broadcast

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

Overview

An object that describes a specific occurance of a broadcast event (i.e. creating/extending a feed)

Constant Summary collapse

OPEN_BROADCAST =

Value: Open Broadcast

-1.0

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

#block_indexObject

(integer): The block index (block number in the block chain)



176
177
178
# File 'lib/counterparty/resources.rb', line 176

def block_index
  @block_index
end

#fee_fractionObject

(float): How much of every bet on this feed should go to its operator; a fraction of 1, (i.e. .05 is five percent). Used on create.



200
201
202
# File 'lib/counterparty/resources.rb', line 200

def fee_fraction
  @fee_fraction
end

#fee_multiplierObject

(float): How much of every bet on this feed should go to its operator; a fraction of 1, (i.e. .05 is five percent)



189
190
191
# File 'lib/counterparty/resources.rb', line 189

def fee_multiplier
  @fee_multiplier
end

#sourceObject

(string): The address that made the broadcast



179
180
181
# File 'lib/counterparty/resources.rb', line 179

def source
  @source
end

#textObject

(string): The textual component of the broadcast



192
193
194
# File 'lib/counterparty/resources.rb', line 192

def text
  @text
end

#timestampObject

(string): The time the broadcast was made, in Unix time.



182
183
184
# File 'lib/counterparty/resources.rb', line 182

def timestamp
  @timestamp
end

#tx_hashObject

(string): The transaction hash



173
174
175
# File 'lib/counterparty/resources.rb', line 173

def tx_hash
  @tx_hash
end

#tx_indexObject

(integer): The transaction index



170
171
172
# File 'lib/counterparty/resources.rb', line 170

def tx_index
  @tx_index
end

#validityObject

(string): Set to “valid” if a valid broadcast. Any other setting signifies an invalid/improper broadcast



196
197
198
# File 'lib/counterparty/resources.rb', line 196

def validity
  @validity
end

#valueObject

(float): The numerical value of the broadcast



185
186
187
# File 'lib/counterparty/resources.rb', line 185

def value
  @value
end