Class: Google::Apis::WalletobjectsV1::PassConstraints

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

Container for any constraints that may be placed on passes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PassConstraints

Returns a new instance of PassConstraints.



6476
6477
6478
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6476

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

Instance Attribute Details

#nfc_constraintArray<String>

The NFC constraints for the pass. Corresponds to the JSON property nfcConstraint

Returns:

  • (Array<String>)


6469
6470
6471
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6469

def nfc_constraint
  @nfc_constraint
end

#screenshot_eligibilityString

The screenshot eligibility for the pass. Corresponds to the JSON property screenshotEligibility

Returns:

  • (String)


6474
6475
6476
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6474

def screenshot_eligibility
  @screenshot_eligibility
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6481
6482
6483
6484
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6481

def update!(**args)
  @nfc_constraint = args[:nfc_constraint] if args.key?(:nfc_constraint)
  @screenshot_eligibility = args[:screenshot_eligibility] if args.key?(:screenshot_eligibility)
end