module Tellimus
guides.rubyonrails.org/generators.html rdoc.info/github/wycats/thor/master/Thor/Actions.html
guides.rubyonrails.org/generators.html rdoc.info/github/wycats/thor/master/Thor/Actions.html
Constants
- VERSION
Public Class Methods
free_trial?()
click to toggle source
# File lib/tellimus.rb, line 79 def self.free_trial? free_trial_length.to_i > 0 end
gateway()
click to toggle source
# File lib/tellimus.rb, line 50 def self.gateway Braintree::Gateway.new( environment: braintree_environment, merchant_id: braintree_merchant_id, public_key: braintree_public_key, private_key: braintree_private_key ) end
layout()
click to toggle source
# File lib/tellimus.rb, line 38 def self.layout @@layout || 'application' end
layout=(layout)
click to toggle source
# File lib/tellimus.rb, line 42 def self.layout=(layout) @@layout = layout end
owner_assignment_sym()
click to toggle source
e.g. :user=
# File lib/tellimus.rb, line 70 def self.owner_assignment_sym :"#{Tellimus.subscriptions_owned_by}=" end
owner_class()
click to toggle source
e.g. User
# File lib/tellimus.rb, line 75 def self.owner_class Tellimus.subscriptions_owned_by.to_s.classify.constantize end
owner_id_sym()
click to toggle source
e.g. :user_id
# File lib/tellimus.rb, line 65 def self.owner_id_sym :"#{Tellimus.subscriptions_owned_by}_id" end
owner_resource()
click to toggle source
e.g. :users
# File lib/tellimus.rb, line 60 def self.owner_resource subscriptions_owned_by.to_s.pluralize.to_sym end
setup() { |self| ... }
click to toggle source
# File lib/tellimus.rb, line 46 def self.setup yield self end
subscriptions_owned_through_or_by()
click to toggle source
# File lib/tellimus.rb, line 13 def self.subscriptions_owned_through_or_by @@subscriptions_owned_through || @@subscriptions_owned_by end