Class: Google::Apis::WalletobjectsV1::RotatingBarcodeTotpDetails

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 time-based OTP substitutions. See https://tools.ietf.org/ html/rfc6238

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RotatingBarcodeTotpDetails

Returns a new instance of RotatingBarcodeTotpDetails.



6825
6826
6827
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6825

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

Instance Attribute Details

#algorithmString

The TOTP algorithm used to generate the OTP. Corresponds to the JSON property algorithm

Returns:

  • (String)


6812
6813
6814
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6812

def algorithm
  @algorithm
end

#parametersArray<Google::Apis::WalletobjectsV1::RotatingBarcodeTotpDetailsTotpParameters>

The TOTP parameters for each of the totp_value_* substitutions. The TotpParameters at index n is used for the totp_value_n substitution. Corresponds to the JSON property parameters



6818
6819
6820
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6818

def parameters
  @parameters
end

#period_millisFixnum

The time interval used for the TOTP value generation, in milliseconds. Corresponds to the JSON property periodMillis

Returns:

  • (Fixnum)


6823
6824
6825
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6823

def period_millis
  @period_millis
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6830
6831
6832
6833
6834
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6830

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