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.
6038 6039 6040 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6038 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
6036 6037 6038 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6036 def display_interval @display_interval end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6043 6044 6045 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6043 def update!(**args) @display_interval = args[:display_interval] if args.key?(:display_interval) end |