Module: Drip::Collections
- Defined in:
- lib/drip/collections.rb
Class Method Summary collapse
Class Method Details
.classes ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/drip/collections.rb', line 18 def self.classes [ Drip::Accounts, Drip::Broadcasts, Drip::Campaigns, Drip::CampaignSubscriptions, Drip::Errors, Drip::Orders, Drip::Purchases, Drip::Subscribers, Drip::Tags, Drip::Webhooks, Drip::Workflows, Drip::WorkflowTriggers ] end |
.find_class(name) ⇒ Object
35 36 37 |
# File 'lib/drip/collections.rb', line 35 def self.find_class(name) classes.find { |c| c.collection_name == name } || Drip::Collection end |