Class: Google::Apis::WalletobjectsV1::ModuleViewConstraints
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::ModuleViewConstraints
- 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
Constraints that all must be met for the module to be shown.
Instance Attribute Summary collapse
-
#display_interval ⇒ Google::Apis::WalletobjectsV1::TimeInterval
The period of time that the module will be displayed to users.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ModuleViewConstraints
constructor
A new instance of ModuleViewConstraints.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ModuleViewConstraints
Returns a new instance of ModuleViewConstraints.
6164 6165 6166 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6164 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_interval ⇒ Google::Apis::WalletobjectsV1::TimeInterval
The period of time that the module will be displayed to users. Can define both
a startTime
and endTime
. The module is displayed immediately after
insertion unless a startTime
is set. The module is displayed indefinitely if
endTime
is not set.
Corresponds to the JSON property displayInterval
6162 6163 6164 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6162 def display_interval @display_interval end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6169 6170 6171 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6169 def update!(**args) @display_interval = args[:display_interval] if args.key?(:display_interval) end |