Class: EverSdk::Crypto::ParamsOfHDKeyXPrvFromMnemonic
- Inherits:
-
Object
- Object
- EverSdk::Crypto::ParamsOfHDKeyXPrvFromMnemonic
- Defined in:
- lib/ever_sdk_client/crypto.rb
Instance Attribute Summary collapse
-
#dictionary ⇒ Object
readonly
Returns the value of attribute dictionary.
-
#phrase ⇒ Object
readonly
Returns the value of attribute phrase.
-
#word_count ⇒ Object
readonly
Returns the value of attribute word_count.
Instance Method Summary collapse
-
#initialize(phrase:, dictionary: nil, word_count: nil) ⇒ ParamsOfHDKeyXPrvFromMnemonic
constructor
A new instance of ParamsOfHDKeyXPrvFromMnemonic.
- #to_h ⇒ Object
Constructor Details
#initialize(phrase:, dictionary: nil, word_count: nil) ⇒ ParamsOfHDKeyXPrvFromMnemonic
Returns a new instance of ParamsOfHDKeyXPrvFromMnemonic.
134 135 136 137 138 |
# File 'lib/ever_sdk_client/crypto.rb', line 134 def initialize(phrase:, dictionary: nil, word_count: nil) @phrase = phrase @dictionary = dictionary @word_count = word_count end |
Instance Attribute Details
#dictionary ⇒ Object (readonly)
Returns the value of attribute dictionary.
132 133 134 |
# File 'lib/ever_sdk_client/crypto.rb', line 132 def dictionary @dictionary end |
#phrase ⇒ Object (readonly)
Returns the value of attribute phrase.
132 133 134 |
# File 'lib/ever_sdk_client/crypto.rb', line 132 def phrase @phrase end |
#word_count ⇒ Object (readonly)
Returns the value of attribute word_count.
132 133 134 |
# File 'lib/ever_sdk_client/crypto.rb', line 132 def word_count @word_count end |
Instance Method Details
#to_h ⇒ Object
140 141 142 143 144 145 146 |
# File 'lib/ever_sdk_client/crypto.rb', line 140 def to_h { phrase: @phrase, dictionary: @dictionary, word_count: @word_count } end |