Class: Google::Apis::ChecksV1alpha::LastUpdatedDate

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

Overview

Information about the date when the privacy policy was last updated.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LastUpdatedDate

Returns a new instance of LastUpdatedDate.



217
218
219
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 217

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

Instance Attribute Details

#end_offsetFixnum

Byte offsets for the end of the date text inside the full text. Corresponds to the JSON property endOffset

Returns:

  • (Fixnum)


191
192
193
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 191

def end_offset
  @end_offset
end

#last_updated_dateGoogle::Apis::ChecksV1alpha::Date

Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type. TimeOfDay * google.type.DateTime * google.protobuf.Timestamp Corresponds to the JSON property lastUpdatedDate



203
204
205
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 203

def last_updated_date
  @last_updated_date
end

#start_offsetFixnum

Byte offsets for the start of the date text inside the full text. Corresponds to the JSON property startOffset

Returns:

  • (Fixnum)


208
209
210
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 208

def start_offset
  @start_offset
end

#text_contentString

The bytes of actual text content in the section. NOTE: - This will correspond to the whole sentence that includes the date. - This field might contain HTML and it is not sanitized. Corresponds to the JSON property textContent

Returns:

  • (String)


215
216
217
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 215

def text_content
  @text_content
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



222
223
224
225
226
227
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 222

def update!(**args)
  @end_offset = args[:end_offset] if args.key?(:end_offset)
  @last_updated_date = args[:last_updated_date] if args.key?(:last_updated_date)
  @start_offset = args[:start_offset] if args.key?(:start_offset)
  @text_content = args[:text_content] if args.key?(:text_content)
end