Class: Google::Apis::DeveloperknowledgeV1alpha::CitationSource

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

Citation source.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CitationSource

Returns a new instance of CitationSource.



177
178
179
# File 'lib/google/apis/developerknowledge_v1alpha/classes.rb', line 177

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

Instance Attribute Details

#reference_indexFixnum

Output only. Contains the index of the Answer.AnswerReference in the references repeated field. Corresponds to the JSON property referenceIndex

Returns:

  • (Fixnum)


175
176
177
# File 'lib/google/apis/developerknowledge_v1alpha/classes.rb', line 175

def reference_index
  @reference_index
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



182
183
184
# File 'lib/google/apis/developerknowledge_v1alpha/classes.rb', line 182

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