Class: Google::Apis::WalletobjectsV1::TicketRestrictions
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::TicketRestrictions
- 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
-
#other_restrictions ⇒ Google::Apis::WalletobjectsV1::LocalizedString
Extra restrictions that don't fall under the "route" or "time" categories.
-
#route_restrictions ⇒ Google::Apis::WalletobjectsV1::LocalizedString
Restrictions about routes that may be taken.
-
#route_restrictions_details ⇒ Google::Apis::WalletobjectsV1::LocalizedString
More details about the above
routeRestrictions
. -
#time_restrictions ⇒ Google::Apis::WalletobjectsV1::LocalizedString
Restrictions about times this ticket may be used.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TicketRestrictions
constructor
A new instance of TicketRestrictions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TicketRestrictions
Returns a new instance of TicketRestrictions.
7844 7845 7846 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7844 def initialize(**args) update!(**args) end |
Instance Attribute Details
#other_restrictions ⇒ Google::Apis::WalletobjectsV1::LocalizedString
Extra restrictions that don't fall under the "route" or "time" categories.
Corresponds to the JSON property otherRestrictions
7826 7827 7828 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7826 def other_restrictions @other_restrictions end |
#route_restrictions ⇒ Google::Apis::WalletobjectsV1::LocalizedString
Restrictions about routes that may be taken. For example, this may be the
string "Reserved CrossCountry trains only".
Corresponds to the JSON property routeRestrictions
7832 7833 7834 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7832 def route_restrictions @route_restrictions end |
#route_restrictions_details ⇒ Google::Apis::WalletobjectsV1::LocalizedString
More details about the above routeRestrictions
.
Corresponds to the JSON property routeRestrictionsDetails
7837 7838 7839 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7837 def route_restrictions_details @route_restrictions_details end |
#time_restrictions ⇒ Google::Apis::WalletobjectsV1::LocalizedString
Restrictions about times this ticket may be used.
Corresponds to the JSON property timeRestrictions
7842 7843 7844 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7842 def time_restrictions @time_restrictions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7849 7850 7851 7852 7853 7854 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7849 def update!(**args) @other_restrictions = args[:other_restrictions] if args.key?(:other_restrictions) @route_restrictions = args[:route_restrictions] if args.key?(:route_restrictions) @route_restrictions_details = args[:route_restrictions_details] if args.key?(:route_restrictions_details) @time_restrictions = args[:time_restrictions] if args.key?(:time_restrictions) end |