Class: Google::Apis::WalletobjectsV1::Resources

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Resources

Returns a new instance of Resources.



6699
6700
6701
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6699

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

Instance Attribute Details

#event_ticket_classesArray<Google::Apis::WalletobjectsV1::EventTicketClass>

Corresponds to the JSON property eventTicketClasses



6642
6643
6644
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6642

def event_ticket_classes
  @event_ticket_classes
end

#event_ticket_objectsArray<Google::Apis::WalletobjectsV1::EventTicketObject>

Corresponds to the JSON property eventTicketObjects



6647
6648
6649
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6647

def event_ticket_objects
  @event_ticket_objects
end

#flight_classesArray<Google::Apis::WalletobjectsV1::FlightClass>

Corresponds to the JSON property flightClasses



6652
6653
6654
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6652

def flight_classes
  @flight_classes
end

#flight_objectsArray<Google::Apis::WalletobjectsV1::FlightObject>

Corresponds to the JSON property flightObjects



6657
6658
6659
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6657

def flight_objects
  @flight_objects
end

#gift_card_classesArray<Google::Apis::WalletobjectsV1::GiftCardClass>

Corresponds to the JSON property giftCardClasses



6662
6663
6664
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6662

def gift_card_classes
  @gift_card_classes
end

#gift_card_objectsArray<Google::Apis::WalletobjectsV1::GiftCardObject>

Corresponds to the JSON property giftCardObjects



6667
6668
6669
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6667

def gift_card_objects
  @gift_card_objects
end

#loyalty_classesArray<Google::Apis::WalletobjectsV1::LoyaltyClass>

Corresponds to the JSON property loyaltyClasses



6672
6673
6674
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6672

def loyalty_classes
  @loyalty_classes
end

#loyalty_objectsArray<Google::Apis::WalletobjectsV1::LoyaltyObject>

Corresponds to the JSON property loyaltyObjects



6677
6678
6679
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6677

def loyalty_objects
  @loyalty_objects
end

#offer_classesArray<Google::Apis::WalletobjectsV1::OfferClass>

Corresponds to the JSON property offerClasses



6682
6683
6684
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6682

def offer_classes
  @offer_classes
end

#offer_objectsArray<Google::Apis::WalletobjectsV1::OfferObject>

Corresponds to the JSON property offerObjects



6687
6688
6689
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6687

def offer_objects
  @offer_objects
end

#transit_classesArray<Google::Apis::WalletobjectsV1::TransitClass>

Corresponds to the JSON property transitClasses



6692
6693
6694
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6692

def transit_classes
  @transit_classes
end

#transit_objectsArray<Google::Apis::WalletobjectsV1::TransitObject>

Corresponds to the JSON property transitObjects



6697
6698
6699
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6697

def transit_objects
  @transit_objects
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6704

def update!(**args)
  @event_ticket_classes = args[:event_ticket_classes] if args.key?(:event_ticket_classes)
  @event_ticket_objects = args[:event_ticket_objects] if args.key?(:event_ticket_objects)
  @flight_classes = args[:flight_classes] if args.key?(:flight_classes)
  @flight_objects = args[:flight_objects] if args.key?(:flight_objects)
  @gift_card_classes = args[:gift_card_classes] if args.key?(:gift_card_classes)
  @gift_card_objects = args[:gift_card_objects] if args.key?(:gift_card_objects)
  @loyalty_classes = args[:loyalty_classes] if args.key?(:loyalty_classes)
  @loyalty_objects = args[:loyalty_objects] if args.key?(:loyalty_objects)
  @offer_classes = args[:offer_classes] if args.key?(:offer_classes)
  @offer_objects = args[:offer_objects] if args.key?(:offer_objects)
  @transit_classes = args[:transit_classes] if args.key?(:transit_classes)
  @transit_objects = args[:transit_objects] if args.key?(:transit_objects)
end