Class: FlowClient::AccountKey
- Inherits:
-
Object
- Object
- FlowClient::AccountKey
- Defined in:
- lib/flow_client/account.rb
Instance Attribute Summary collapse
-
#hash_algo ⇒ Object
Returns the value of attribute hash_algo.
-
#index ⇒ Object
Returns the value of attribute index.
-
#public_key ⇒ Object
Returns the value of attribute public_key.
-
#revoked ⇒ Object
Returns the value of attribute revoked.
-
#sequence_number ⇒ Object
Returns the value of attribute sequence_number.
-
#sign_algo ⇒ Object
Returns the value of attribute sign_algo.
-
#weight ⇒ Object
Returns the value of attribute weight.
Instance Method Summary collapse
-
#initialize(public_key: nil, index: nil, sequence_number: nil, weight: 1000, revoked: false, hash_algo: FlowClient::Crypto::HashAlgos::SHA3_256) ⇒ AccountKey
constructor
A new instance of AccountKey.
Constructor Details
#initialize(public_key: nil, index: nil, sequence_number: nil, weight: 1000, revoked: false, hash_algo: FlowClient::Crypto::HashAlgos::SHA3_256) ⇒ AccountKey
Returns a new instance of AccountKey.
10 11 12 13 14 15 16 17 |
# File 'lib/flow_client/account.rb', line 10 def initialize(public_key: nil, index: nil, sequence_number: nil, weight: 1000, revoked: false, hash_algo: FlowClient::Crypto::HashAlgos::SHA3_256) @public_key = public_key @index = index @sequence_number = sequence_number @weight = weight @revoked = revoked @hash_algo = hash_algo end |
Instance Attribute Details
#hash_algo ⇒ Object
Returns the value of attribute hash_algo.
5 6 7 |
# File 'lib/flow_client/account.rb', line 5 def hash_algo @hash_algo end |
#index ⇒ Object
Returns the value of attribute index.
5 6 7 |
# File 'lib/flow_client/account.rb', line 5 def index @index end |
#public_key ⇒ Object
Returns the value of attribute public_key.
5 6 7 |
# File 'lib/flow_client/account.rb', line 5 def public_key @public_key end |
#revoked ⇒ Object
Returns the value of attribute revoked.
5 6 7 |
# File 'lib/flow_client/account.rb', line 5 def revoked @revoked end |
#sequence_number ⇒ Object
Returns the value of attribute sequence_number.
5 6 7 |
# File 'lib/flow_client/account.rb', line 5 def sequence_number @sequence_number end |
#sign_algo ⇒ Object
Returns the value of attribute sign_algo.
5 6 7 |
# File 'lib/flow_client/account.rb', line 5 def sign_algo @sign_algo end |
#weight ⇒ Object
Returns the value of attribute weight.
5 6 7 |
# File 'lib/flow_client/account.rb', line 5 def weight @weight end |