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.



138
139
140
# File 'lib/google/apis/developerknowledge_v1alpha/classes.rb', line 138

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



136
137
138
# File 'lib/google/apis/developerknowledge_v1alpha/classes.rb', line 136

def document_reference
  @document_reference
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



143
144
145
# File 'lib/google/apis/developerknowledge_v1alpha/classes.rb', line 143

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