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.



6956
6957
6958
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6956

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

Instance Attribute Details

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

A list of event ticket classes. Corresponds to the JSON property eventTicketClasses



6889
6890
6891
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6889

def event_ticket_classes
  @event_ticket_classes
end

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

A list of event ticket objects. Corresponds to the JSON property eventTicketObjects



6894
6895
6896
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6894

def event_ticket_objects
  @event_ticket_objects
end

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

A list of flight classes. Corresponds to the JSON property flightClasses



6899
6900
6901
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6899

def flight_classes
  @flight_classes
end

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

A list of flight objects. Corresponds to the JSON property flightObjects



6904
6905
6906
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6904

def flight_objects
  @flight_objects
end

#generic_classesArray<Google::Apis::WalletobjectsV1::GenericClass>

A list of generic classes. Corresponds to the JSON property genericClasses



6909
6910
6911
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6909

def generic_classes
  @generic_classes
end

#generic_objectsArray<Google::Apis::WalletobjectsV1::GenericObject>

A list of generic objects. Corresponds to the JSON property genericObjects



6914
6915
6916
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6914

def generic_objects
  @generic_objects
end

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

A list of gift card classes. Corresponds to the JSON property giftCardClasses



6919
6920
6921
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6919

def gift_card_classes
  @gift_card_classes
end

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

A list of gift card objects. Corresponds to the JSON property giftCardObjects



6924
6925
6926
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6924

def gift_card_objects
  @gift_card_objects
end

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

A list of loyalty classes. Corresponds to the JSON property loyaltyClasses



6929
6930
6931
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6929

def loyalty_classes
  @loyalty_classes
end

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

A list of loyalty objects. Corresponds to the JSON property loyaltyObjects



6934
6935
6936
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6934

def loyalty_objects
  @loyalty_objects
end

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

A list of offer classes. Corresponds to the JSON property offerClasses



6939
6940
6941
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6939

def offer_classes
  @offer_classes
end

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

A list of offer objects. Corresponds to the JSON property offerObjects



6944
6945
6946
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6944

def offer_objects
  @offer_objects
end

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

A list of transit classes. Corresponds to the JSON property transitClasses



6949
6950
6951
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6949

def transit_classes
  @transit_classes
end

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

A list of transit objects. Corresponds to the JSON property transitObjects



6954
6955
6956
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6954

def transit_objects
  @transit_objects
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6961

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)
  @generic_classes = args[:generic_classes] if args.key?(:generic_classes)
  @generic_objects = args[:generic_objects] if args.key?(:generic_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