Method: Nis::Struct::Block.build
- Defined in:
- lib/nis/struct/block.rb
.build(attrs) ⇒ Object
20 21 22 23 |
# File 'lib/nis/struct/block.rb', line 20 def self.build(attrs) attrs[:transactions] = attrs[:transactions].map { |tx| Transaction.build(tx) } new(attrs) end |