Class: Counterparty::Broadcast
- Inherits:
-
CounterResource
- Object
- CounterResource
- Counterparty::Broadcast
- 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
-
#block_index ⇒ Object
(integer): The block index (block number in the block chain).
-
#fee_fraction ⇒ Object
(float): How much of every bet on this feed should go to its operator; a fraction of 1, (i.e. .05 is five percent).
-
#fee_multiplier ⇒ Object
(float): How much of every bet on this feed should go to its operator; a fraction of 1, (i.e. .05 is five percent).
-
#source ⇒ Object
(string): The address that made the broadcast.
-
#text ⇒ Object
(string): The textual component of the broadcast.
-
#timestamp ⇒ Object
(string): The time the broadcast was made, in Unix time.
-
#tx_hash ⇒ Object
(string): The transaction hash.
-
#tx_index ⇒ Object
(integer): The transaction index.
-
#validity ⇒ Object
(string): Set to “valid” if a valid broadcast.
-
#value ⇒ Object
(float): The numerical value of the broadcast.
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_index ⇒ Object
(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_fraction ⇒ Object
(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_multiplier ⇒ Object
(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 |
#source ⇒ Object
(string): The address that made the broadcast
179 180 181 |
# File 'lib/counterparty/resources.rb', line 179 def source @source end |
#text ⇒ Object
(string): The textual component of the broadcast
192 193 194 |
# File 'lib/counterparty/resources.rb', line 192 def text @text end |
#timestamp ⇒ Object
(string): The time the broadcast was made, in Unix time.
182 183 184 |
# File 'lib/counterparty/resources.rb', line 182 def @timestamp end |
#tx_hash ⇒ Object
(string): The transaction hash
173 174 175 |
# File 'lib/counterparty/resources.rb', line 173 def tx_hash @tx_hash end |
#tx_index ⇒ Object
(integer): The transaction index
170 171 172 |
# File 'lib/counterparty/resources.rb', line 170 def tx_index @tx_index end |
#validity ⇒ Object
(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 |
#value ⇒ Object
(float): The numerical value of the broadcast
185 186 187 |
# File 'lib/counterparty/resources.rb', line 185 def value @value end |