Class: ResellerKit

Inherits:
Kit
  • Object
show all
Defined in:
app/models/kits/reseller_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



12
13
14
# File 'app/models/kits/reseller_kit.rb', line 12

def friendly_name
  "Reseller Ticketing"
end

#no_bank_account?Boolean

Returns:

  • (Boolean)


25
26
27
28
# File 'app/models/kits/reseller_kit.rb', line 25

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)


20
21
22
23
# File 'app/models/kits/reseller_kit.rb', line 20

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



30
31
32
# File 'app/models/kits/reseller_kit.rb', line 30

def on_pending
  AdminMailer.reseller_kit_notification(self).deliver
end

#pitchObject



16
17
18
# File 'app/models/kits/reseller_kit.rb', line 16

def pitch
  "Resell tickets from other producers on your own website."
end