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.
6173 6174 6175 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6173 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
6171 6172 6173 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6171 def display_interval @display_interval end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6178 6179 6180 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6178 def update!(**args) @display_interval = args[:display_interval] if args.key?(:display_interval) end |