Class: Google::Apis::WalletobjectsV1::PassConstraints
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::PassConstraints
- 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
Container for any constraints that may be placed on passes.
Instance Attribute Summary collapse
-
#nfc_constraint ⇒ Array<String>
The NFC constraints for the pass.
-
#screenshot_eligibility ⇒ String
The screenshot eligibility for the pass.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PassConstraints
constructor
A new instance of PassConstraints.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PassConstraints
Returns a new instance of PassConstraints.
6838 6839 6840 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6838 def initialize(**args) update!(**args) end |
Instance Attribute Details
#nfc_constraint ⇒ Array<String>
The NFC constraints for the pass.
Corresponds to the JSON property nfcConstraint
6831 6832 6833 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6831 def nfc_constraint @nfc_constraint end |
#screenshot_eligibility ⇒ String
The screenshot eligibility for the pass.
Corresponds to the JSON property screenshotEligibility
6836 6837 6838 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6836 def screenshot_eligibility @screenshot_eligibility end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6843 6844 6845 6846 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6843 def update!(**args) @nfc_constraint = args[:nfc_constraint] if args.key?(:nfc_constraint) @screenshot_eligibility = args[:screenshot_eligibility] if args.key?(:screenshot_eligibility) end |