Class: Faker::Subscription

Inherits:
Base
  • Object
show all
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

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_methodString

Produces the name of a payment method.

Examples:

Faker::Subscription.payment_method #=> "PayPal"

Returns:



40
41
42
# File 'lib/faker/default/subscription.rb', line 40

def self.payment_method
  fetch('subscription.payment_methods')
end

.payment_termString

Produces the name of a payment term.

Examples:

Faker::Subscription.payment_term #=> "Monthly"

Returns:



66
67
68
# File 'lib/faker/default/subscription.rb', line 66

def self.payment_term
  fetch('subscription.payment_terms')
end

.planString

Produces the name of a subscription plan.

Examples:

Faker::Subscription.plan #=> "Platinum"

Returns:



14
15
16
# File 'lib/faker/default/subscription.rb', line 14

def self.plan
  fetch('subscription.plans')
end

.statusString

Produces a subscription status.

Examples:

Faker::Subscription.status #=> "Active"

Returns:



27
28
29
# File 'lib/faker/default/subscription.rb', line 27

def self.status
  fetch('subscription.statuses')
end

.subscription_termString

Produces the name of a subscription term.

Examples:

Faker::Subscription.subscription_term #=> "Annual"

Returns:



53
54
55
# File 'lib/faker/default/subscription.rb', line 53

def self.subscription_term
  fetch('subscription.subscription_terms')
end