Class: Relevant::EventbriteSignups

Inherits:
Object
  • Object
show all
Includes:
Widget
Defined in:
lib/relevant/eventbrite_signups.rb

Constant Summary collapse

Version =
'0.0.2'

Instance Method Summary collapse

Instance Method Details

#eventObject



28
29
30
# File 'lib/relevant/eventbrite_signups.rb', line 28

def event
  EventBright::User.new(options[:user_key]).events.detect{|e| e.id == options[:event_id].to_i}
end

#signup_countObject



22
23
24
25
26
# File 'lib/relevant/eventbrite_signups.rb', line 22

def 
  return '?' unless event
  
  event.tickets.map(&:quantity_sold).reduce(:+)
end