Class: Nis::Struct::ExplorerTransferViewModel

Inherits:
Object
  • Object
show all
Includes:
Util::Assignable
Defined in:
lib/nis/struct/explorer_transfer_view_model.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Util::Assignable

#[], #initialize, #to_hash, #to_json

Instance Attribute Details

#hashString

Returns the current value of hash.

Returns:

  • (String)

    the current value of hash



6
7
8
# File 'lib/nis/struct/explorer_transfer_view_model.rb', line 6

def hash
  @hash
end

#innerHashString Also known as: inner_hash

Returns the current value of innerHash.

Returns:

  • (String)

    the current value of innerHash



6
7
8
# File 'lib/nis/struct/explorer_transfer_view_model.rb', line 6

def innerHash
  @innerHash
end

#txNis::Struct::Transaction

Returns the current value of tx.

Returns:



6
7
8
# File 'lib/nis/struct/explorer_transfer_view_model.rb', line 6

def tx
  @tx
end

Class Method Details

.build(attrs) ⇒ Object



13
14
15
16
# File 'lib/nis/struct/explorer_transfer_view_model.rb', line 13

def self.build(attrs)
  attrs[:tx] = Transaction.build(attrs[:tx])
  new(attrs)
end