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)
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, 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_index ⇒ Object
(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_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.
181 182 183 |
# File 'lib/counterparty/resources.rb', line 181 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)
170 171 172 |
# File 'lib/counterparty/resources.rb', line 170 def fee_multiplier @fee_multiplier end |
#source ⇒ Object
(string): The address that made the broadcast
160 161 162 |
# File 'lib/counterparty/resources.rb', line 160 def source @source end |
#text ⇒ Object
(string): The textual component of the broadcast
173 174 175 |
# File 'lib/counterparty/resources.rb', line 173 def text @text end |
#timestamp ⇒ Object
(string): The time the broadcast was made, in Unix time.
163 164 165 |
# File 'lib/counterparty/resources.rb', line 163 def end |
#tx_hash ⇒ Object
(string): The transaction hash
154 155 156 |
# File 'lib/counterparty/resources.rb', line 154 def tx_hash @tx_hash end |
#tx_index ⇒ Object
(integer): The transaction index
151 152 153 |
# File 'lib/counterparty/resources.rb', line 151 def tx_index @tx_index end |
#validity ⇒ Object
(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 |
#value ⇒ Object
(float): The numerical value of the broadcast
166 167 168 |
# File 'lib/counterparty/resources.rb', line 166 def value @value end |