Class: TicketingKit

Inherits:
Kit
  • Object
show all
Defined in:
app/models/kits/ticketing_kit.rb

Instance Method Summary collapse

Methods inherited from Kit

#abilities, #activatable?, activate, activation_requirements, acts_as_kit, #admin_approvable?, admin_approval_requirements, admin_approve, #alternatives, #approvable?, approval_requirements, approve, #has_alternatives?, mailchimp, pad_with_new_kits, #requirements_met?, subklasses, visible, when_active

Methods included from Ext::Integrations::Kit

#record_activation, #record_approval

Instance Method Details

#friendly_nameObject



11
12
13
# File 'app/models/kits/ticketing_kit.rb', line 11

def friendly_name
  "Paid Event Ticketing"
end

#no_bank_account?Boolean

Returns:

  • (Boolean)


24
25
26
27
# File 'app/models/kits/ticketing_kit.rb', line 24

def no_bank_account?
  errors.add(:requirements, "Your organization needs bank account information first.") if organization..nil?
  organization..nil?
end

#no_owner?Boolean

Returns:

  • (Boolean)


19
20
21
22
# File 'app/models/kits/ticketing_kit.rb', line 19

def no_owner?
  errors.add(:requirements, "You need to be part of an organization to activate this kit.") if organization.owner.nil?
  organization.owner.nil?
end

#on_pendingObject



29
30
31
# File 'app/models/kits/ticketing_kit.rb', line 29

def on_pending
  AdminMailer.ticketing_kit_notification(self).deliver
end

#pitchObject



15
16
17
# File 'app/models/kits/ticketing_kit.rb', line 15

def pitch
  "Sell tickets"
end