class Faker::Subscription
Public Class Methods
payment_method()
click to toggle source
Produces the name of a payment method.
@return [String]
@example
Faker::Subscription.payment_method #=> "PayPal"
@faker.version 1.9.2
# File lib/faker/default/subscription.rb, line 40 def self.payment_method fetch('subscription.payment_methods') end
payment_term()
click to toggle source
Produces the name of a payment term.
@return [String]
@example
Faker::Subscription.payment_term #=> "Monthly"
@faker.version 1.9.2
# File lib/faker/default/subscription.rb, line 66 def self.payment_term fetch('subscription.payment_terms') end
plan()
click to toggle source
Produces the name of a subscription plan.
@return [String]
@example
Faker::Subscription.plan #=> "Platinum"
@faker.version 1.9.2
# File lib/faker/default/subscription.rb, line 14 def self.plan fetch('subscription.plans') end
status()
click to toggle source
Produces a subscription status.
@return [String]
@example
Faker::Subscription.status #=> "Active"
@faker.version 1.9.2
# File lib/faker/default/subscription.rb, line 27 def self.status fetch('subscription.statuses') end
subscription_term()
click to toggle source
Produces the name of a subscription term.
@return [String]
@example
Faker::Subscription.subscription_term #=> "Annual"
@faker.version 1.9.2
# File lib/faker/default/subscription.rb, line 53 def self.subscription_term fetch('subscription.subscription_terms') end