Class: Google::Apis::DeveloperknowledgeV1alpha::AnswerReference

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

Overview

Represents a reference to a source.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AnswerReference

Returns a new instance of AnswerReference.



168
169
170
# File 'lib/google/apis/developerknowledge_v1alpha/classes.rb', line 168

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

Instance Attribute Details

#document_referenceGoogle::Apis::DeveloperknowledgeV1alpha::DocumentReference

Represents a reference to a document. Corresponds to the JSON property documentReference



166
167
168
# File 'lib/google/apis/developerknowledge_v1alpha/classes.rb', line 166

def document_reference
  @document_reference
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



173
174
175
# File 'lib/google/apis/developerknowledge_v1alpha/classes.rb', line 173

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