Class: Google::Apis::CesV1::CitationsCitedChunk

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

Overview

Piece of cited information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CitationsCitedChunk

Returns a new instance of CitationsCitedChunk.



1715
1716
1717
# File 'lib/google/apis/ces_v1/classes.rb', line 1715

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

Instance Attribute Details

#textString

Text used for citation. Corresponds to the JSON property text

Returns:

  • (String)


1703
1704
1705
# File 'lib/google/apis/ces_v1/classes.rb', line 1703

def text
  @text
end

#titleString

Title of the cited document. Corresponds to the JSON property title

Returns:

  • (String)


1708
1709
1710
# File 'lib/google/apis/ces_v1/classes.rb', line 1708

def title
  @title
end

#uriString

URI used for citation. Corresponds to the JSON property uri

Returns:

  • (String)


1713
1714
1715
# File 'lib/google/apis/ces_v1/classes.rb', line 1713

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1720
1721
1722
1723
1724
# File 'lib/google/apis/ces_v1/classes.rb', line 1720

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