Class: SubscriptionFu::SystemInitiator

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/subscription_fu/system_initiator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.paypal_sync_initiatorObject



4
5
6
# File 'app/models/subscription_fu/system_initiator.rb', line 4

def self.paypal_sync_initiator
  find_or_create_by_name("paypal sync", :description => "Updates subscription status based on status returned by Paypal")
end

Instance Method Details

#to_sObject



8
9
10
# File 'app/models/subscription_fu/system_initiator.rb', line 8

def to_s
  name
end