Class: GoogleWallet::Operations::EventTicket::PushObject

Inherits:
Object
  • Object
show all
Defined in:
lib/google_wallet/operations/event_ticket/push_object.rb

Constant Summary collapse

ENDPOINT =
'eventTicketObject'

Instance Method Summary collapse

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

#callObject



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