Class: Google::Apis::CloudsearchV1::Formatting
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::Formatting
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Overview
Formatting information for a segment.
Instance Attribute Summary collapse
-
#bold ⇒ Boolean
(also: #bold?)
Corresponds to the JSON property
bold
. -
#highlight ⇒ Boolean
(also: #highlight?)
This indicates that the segment should be rendered as highlighted or visually emphasized.
-
#italics ⇒ Boolean
(also: #italics?)
Corresponds to the JSON property
italics
. -
#strikethrough ⇒ Boolean
(also: #strikethrough?)
Corresponds to the JSON property
strikethrough
. -
#style ⇒ String
If set, this indicates that the segment should be rendered with the specified style.
-
#underline ⇒ Boolean
(also: #underline?)
Corresponds to the JSON property
underline
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Formatting
constructor
A new instance of Formatting.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Formatting
Returns a new instance of Formatting.
9370 9371 9372 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9370 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bold ⇒ Boolean Also known as: bold?
Corresponds to the JSON property bold
9335 9336 9337 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9335 def bold @bold end |
#highlight ⇒ Boolean Also known as: highlight?
This indicates that the segment should be rendered as highlighted or visually
emphasized.
Corresponds to the JSON property highlight
9342 9343 9344 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9342 def highlight @highlight end |
#italics ⇒ Boolean Also known as: italics?
Corresponds to the JSON property italics
9348 9349 9350 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9348 def italics @italics end |
#strikethrough ⇒ Boolean Also known as: strikethrough?
Corresponds to the JSON property strikethrough
9354 9355 9356 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9354 def strikethrough @strikethrough end |
#style ⇒ String
If set, this indicates that the segment should be rendered with the specified
style. The absence of an explicit style represents "no style", i.e. the
segment can be rendered with the default style chosen by the application.
Corresponds to the JSON property style
9362 9363 9364 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9362 def style @style end |
#underline ⇒ Boolean Also known as: underline?
Corresponds to the JSON property underline
9367 9368 9369 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9367 def underline @underline end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9375 9376 9377 9378 9379 9380 9381 9382 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9375 def update!(**args) @bold = args[:bold] if args.key?(:bold) @highlight = args[:highlight] if args.key?(:highlight) @italics = args[:italics] if args.key?(:italics) @strikethrough = args[:strikethrough] if args.key?(:strikethrough) @style = args[:style] if args.key?(:style) @underline = args[:underline] if args.key?(:underline) end |