Class: Google::Apis::FirebasedataconnectV1beta::CodeChunk

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

Overview

A chunk of code.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CodeChunk

Returns a new instance of CodeChunk.



111
112
113
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 111

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

Instance Attribute Details

#codeString

Required. The code content string. Corresponds to the JSON property code

Returns:

  • (String)


103
104
105
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 103

def code
  @code
end

#language_codeString

Optional. Specifies the language if we expand support beyond GraphQL (e.g., SQL or JSON) The standard is BCP-47 language code. Corresponds to the JSON property languageCode

Returns:

  • (String)


109
110
111
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 109

def language_code
  @language_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



116
117
118
119
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 116

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