Class: AzureSTT::Parsers::Base
- Inherits:
-
Object
- Object
- AzureSTT::Parsers::Base
- Defined in:
- lib/azure_stt/parsers/base.rb
Overview
Base class for the parsers
Direct Known Subclasses
CombinedRecognizedPhrases, File, RecognizedPhrase, Report, Result, Sentence, Transcription, Word
Instance Attribute Summary collapse
-
#hash ⇒ Object
readonly
Returns the value of attribute hash.
Instance Method Summary collapse
-
#attributes ⇒ Hash
Get the attributes parsed to be able to build the model.
-
#initialize(hash) ⇒ Base
constructor
Initialize the parser.
Constructor Details
#initialize(hash) ⇒ Base
Initialize the parser
16 17 18 |
# File 'lib/azure_stt/parsers/base.rb', line 16 def initialize(hash) @hash = hash end |
Instance Attribute Details
#hash ⇒ Object (readonly)
Returns the value of attribute hash.
9 10 11 |
# File 'lib/azure_stt/parsers/base.rb', line 9 def hash @hash end |
Instance Method Details
#attributes ⇒ Hash
Get the attributes parsed to be able to build the model
25 26 27 |
# File 'lib/azure_stt/parsers/base.rb', line 25 def attributes @attributes ||= build_attributes end |