Class: Nis::Struct::ExplorerViewModelTransaction
- Inherits:
-
Object
- Object
- Nis::Struct::ExplorerViewModelTransaction
- Includes:
- Util::Assignable
- Defined in:
- lib/nis/struct/explorer_view_model_transaction.rb
Overview
Instance Attribute Summary collapse
-
#block ⇒ String
The current value of block.
-
#hash ⇒ String
The current value of hash.
-
#txes ⇒ Array <Nis::Struct::Transaction>
The current value of txes.
Class Method Summary collapse
Methods included from Util::Assignable
#[], #initialize, #to_hash, #to_json
Instance Attribute Details
#block ⇒ String
Returns the current value of block.
6 7 8 |
# File 'lib/nis/struct/explorer_view_model_transaction.rb', line 6 def block @block end |
#hash ⇒ String
Returns the current value of hash.
6 7 8 |
# File 'lib/nis/struct/explorer_view_model_transaction.rb', line 6 def hash @hash end |
#txes ⇒ Array <Nis::Struct::Transaction>
Returns the current value of txes.
6 7 8 |
# File 'lib/nis/struct/explorer_view_model_transaction.rb', line 6 def txes @txes end |
Class Method Details
.build(attrs) ⇒ Object
10 11 12 13 14 |
# File 'lib/nis/struct/explorer_view_model_transaction.rb', line 10 def self.build(attrs) attrs[:txes] = attrs[:txes].map { |tx| Transaction.build(tx) } attrs[:block] = Block.build(attrs[:block]) new(attrs) end |