Class: Google::Apis::WalletobjectsV1::RotatingBarcodeTotpDetailsTotpParameters

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

Overview

Configuration for the key and value length. See https://www.rfc-editor.org/rfc/ rfc4226#section-5.3

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RotatingBarcodeTotpDetailsTotpParameters

Returns a new instance of RotatingBarcodeTotpDetailsTotpParameters.



6852
6853
6854
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6852

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

Instance Attribute Details

#keyString

The secret key used for the TOTP value generation, encoded as a Base16 string. Corresponds to the JSON property key

Returns:

  • (String)


6845
6846
6847
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6845

def key
  @key
end

#value_lengthFixnum

The length of the TOTP value in decimal digits. Corresponds to the JSON property valueLength

Returns:

  • (Fixnum)


6850
6851
6852
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6850

def value_length
  @value_length
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6857
6858
6859
6860
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6857

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