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)

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

#block_indexObject

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



157
158
159
# File 'lib/counterparty/resources.rb', line 157

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.



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

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)



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

def fee_multiplier
  @fee_multiplier
end

#sourceObject

(string): The address that made the broadcast



160
161
162
# File 'lib/counterparty/resources.rb', line 160

def source
  @source
end

#textObject

(string): The textual component of the broadcast



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

def text
  @text
end

#timestampObject

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



163
164
165
# File 'lib/counterparty/resources.rb', line 163

def timestamp
  @timestamp
end

#tx_hashObject

(string): The transaction hash



154
155
156
# File 'lib/counterparty/resources.rb', line 154

def tx_hash
  @tx_hash
end

#tx_indexObject

(integer): The transaction index



151
152
153
# File 'lib/counterparty/resources.rb', line 151

def tx_index
  @tx_index
end

#validityObject

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



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

def validity
  @validity
end

#valueObject

(float): The numerical value of the broadcast



166
167
168
# File 'lib/counterparty/resources.rb', line 166

def value
  @value
end