Class: Google::Apis::DlpV2::GooglePrivacyDlpV2Range
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2::GooglePrivacyDlpV2Range
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dlp_v2/classes.rb,
lib/google/apis/dlp_v2/representations.rb,
lib/google/apis/dlp_v2/representations.rb
Overview
Generic half-open interval [start, end)
Instance Attribute Summary collapse
-
#end ⇒ Fixnum
Index of the last character of the range (exclusive).
-
#start ⇒ Fixnum
Index of the first character of the range (inclusive).
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2Range
constructor
A new instance of GooglePrivacyDlpV2Range.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2Range
Returns a new instance of GooglePrivacyDlpV2Range.
8298 8299 8300 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 8298 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end ⇒ Fixnum
Index of the last character of the range (exclusive).
Corresponds to the JSON property end
8291 8292 8293 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 8291 def end @end end |
#start ⇒ Fixnum
Index of the first character of the range (inclusive).
Corresponds to the JSON property start
8296 8297 8298 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 8296 def start @start end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8303 8304 8305 8306 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 8303 def update!(**args) @end = args[:end] if args.key?(:end) @start = args[:start] if args.key?(:start) end |