Class: Google::Apis::SpeechV1::AbnfGrammar

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/speech_v1/classes.rb,
lib/google/apis/speech_v1/representations.rb,
lib/google/apis/speech_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AbnfGrammar

Returns a new instance of AbnfGrammar.



35
36
37
# File 'lib/google/apis/speech_v1/classes.rb', line 35

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#abnf_stringsArray<String>

All declarations and rules of an ABNF grammar broken up into multiple strings that will end up concatenated. Corresponds to the JSON property abnfStrings

Returns:

  • (Array<String>)


33
34
35
# File 'lib/google/apis/speech_v1/classes.rb', line 33

def abnf_strings
  @abnf_strings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



40
41
42
# File 'lib/google/apis/speech_v1/classes.rb', line 40

def update!(**args)
  @abnf_strings = args[:abnf_strings] if args.key?(:abnf_strings)
end