Class: VoiceBase::Request::HashPart
- Defined in:
- lib/voicebase/request/hash_part.rb
Instance Attribute Summary
Attributes inherited from TextPart
Instance Method Summary collapse
-
#initialize(name:, hash:) ⇒ HashPart
constructor
A new instance of HashPart.
Methods inherited from TextPart
Constructor Details
#initialize(name:, hash:) ⇒ HashPart
Returns a new instance of HashPart.
7 8 9 10 |
# File 'lib/voicebase/request/hash_part.rb', line 7 def initialize(name:, hash:) @name = name @body = ::JSON.dump(hash) end |