Class: GoogleWallet::Operations::EventTicket::PushObject
- Inherits:
-
Object
- Object
- GoogleWallet::Operations::EventTicket::PushObject
- Defined in:
- lib/google_wallet/operations/event_ticket/push_object.rb
Constant Summary collapse
- ENDPOINT =
'eventTicketObject'
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(resource:, access_token:) ⇒ PushObject
constructor
A new instance of PushObject.
Constructor Details
#initialize(resource:, access_token:) ⇒ PushObject
Returns a new instance of PushObject.
11 12 13 14 |
# File 'lib/google_wallet/operations/event_ticket/push_object.rb', line 11 def initialize(resource:, access_token:) @resource = resource @access_token = access_token end |
Instance Method Details
#call ⇒ Object
16 17 18 19 |
# File 'lib/google_wallet/operations/event_ticket/push_object.rb', line 16 def call return update_class if exists? create_class end |