Class: EverSdk::Crypto::ParamsOfHDKeyXPrvFromMnemonic

Inherits:
Object
  • Object
show all
Defined in:
lib/ever_sdk_client/crypto.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dictionaryObject (readonly)

Returns the value of attribute dictionary.



132
133
134
# File 'lib/ever_sdk_client/crypto.rb', line 132

def dictionary
  @dictionary
end

#phraseObject (readonly)

Returns the value of attribute phrase.



132
133
134
# File 'lib/ever_sdk_client/crypto.rb', line 132

def phrase
  @phrase
end

#word_countObject (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_hObject



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