Class: Faker::Subscription
- Defined in:
- lib/faker/default/subscription.rb
Constant Summary
Constants inherited from Base
Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters
Class Method Summary collapse
-
.payment_method ⇒ String
Produces the name of a payment method.
-
.payment_term ⇒ String
Produces the name of a payment term.
-
.plan ⇒ String
Produces the name of a subscription plan.
-
.status ⇒ String
Produces a subscription status.
-
.subscription_term ⇒ String
Produces the name of a subscription term.
Methods inherited from Base
bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, generate, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, shuffle!, translate, unique, with_locale
Class Method Details
.payment_method ⇒ String
Produces the name of a payment method.
40 41 42 |
# File 'lib/faker/default/subscription.rb', line 40 def self.payment_method fetch('subscription.payment_methods') end |
.payment_term ⇒ String
Produces the name of a payment term.
66 67 68 |
# File 'lib/faker/default/subscription.rb', line 66 def self.payment_term fetch('subscription.payment_terms') end |
.plan ⇒ String
Produces the name of a subscription plan.
14 15 16 |
# File 'lib/faker/default/subscription.rb', line 14 def self.plan fetch('subscription.plans') end |
.status ⇒ String
Produces a subscription status.
27 28 29 |
# File 'lib/faker/default/subscription.rb', line 27 def self.status fetch('subscription.statuses') end |
.subscription_term ⇒ String
Produces the name of a subscription term.
53 54 55 |
# File 'lib/faker/default/subscription.rb', line 53 def self.subscription_term fetch('subscription.subscription_terms') end |