Class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Range

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dlp_v2beta1/classes.rb,
generated/google/apis/dlp_v2beta1/representations.rb,
generated/google/apis/dlp_v2beta1/representations.rb

Overview

Generic half-open interval [start, end)

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2beta1Range

Returns a new instance of GooglePrivacyDlpV2beta1Range



2875
2876
2877
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 2875

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)


2868
2869
2870
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 2868

def end
  @end
end

#startFixnum

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

Returns:

  • (Fixnum)


2873
2874
2875
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 2873

def start
  @start
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2880
2881
2882
2883
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 2880

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