lib/tickethub/supplier/customer.rb in tickethub-0.3.7 vs lib/tickethub/supplier/customer.rb in tickethub-0.3.9
- old
+ new
@@ -6,11 +6,16 @@
require_relative 'booking'
require_relative 'ticket'
require_relative 'message'
require_relative 'source'
+ require_relative 'broadcast'
require_relative '../address'
+
+ collection_method :broadcast do |params|
+ Tickethub::Broadcast.call self.endpoint, post(:broadcast, params)
+ end
collection :orders, Supplier::Booking
collection :tickets, Supplier::Ticket
collection :sources, Supplier::Source
collection :messages, Supplier::Message
\ No newline at end of file