Class: Relevant::EventbriteSignups
- Inherits:
-
Object
- Object
- Relevant::EventbriteSignups
- Includes:
- Widget
- Defined in:
- lib/relevant/eventbrite_signups.rb
Constant Summary collapse
- Version =
'0.0.2'
Instance Method Summary collapse
Instance Method Details
#event ⇒ Object
28 29 30 |
# File 'lib/relevant/eventbrite_signups.rb', line 28 def event EventBright::User.new([:user_key]).events.detect{|e| e.id == [:event_id].to_i} end |
#signup_count ⇒ Object
22 23 24 25 26 |
# File 'lib/relevant/eventbrite_signups.rb', line 22 def signup_count return '?' unless event event.tickets.map(&:quantity_sold).reduce(:+) end |