Class: Google::Apis::DlpV2::GooglePrivacyDlpV2Range

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2Range

Returns a new instance of GooglePrivacyDlpV2Range.



8308
8309
8310
# File 'lib/google/apis/dlp_v2/classes.rb', line 8308

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

Instance Attribute Details

#endFixnum

Index of the last character of the range (exclusive). Corresponds to the JSON property end

Returns:

  • (Fixnum)


8301
8302
8303
# File 'lib/google/apis/dlp_v2/classes.rb', line 8301

def end
  @end
end

#startFixnum

Index of the first character of the range (inclusive). Corresponds to the JSON property start

Returns:

  • (Fixnum)


8306
8307
8308
# File 'lib/google/apis/dlp_v2/classes.rb', line 8306

def start
  @start
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8313
8314
8315
8316
# File 'lib/google/apis/dlp_v2/classes.rb', line 8313

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