Sha256: e9f3ea3b13f72d007fa9c3684b709e6541b85e49a9757a3a957bad0848836c3b

Contents?: true

Size: 809 Bytes

Versions: 1

Compression:

Stored size: 809 Bytes

Contents

require "faker/precure/version"

module Faker
  module Precure
    require "rubicure"

    # @return [String]
    def self.human_name
      sample_girl.human_name
    end

    # @return [String]
    def self.precure_name
      sample_girl.precure_name
    end

    # @return [String]
    def self.transform_message
      ::Precure.all.map(&:transform_message).compact.sample
    end

    # @return [String]
    def self.cast_name
      sample_girl.cast_name
    end

    # @return [String]
    def self.user_name
      ::Rubicure::Girl.uniq_names.sample.to_s
    end

    # @return [String]
    def self.title
      sample_series.title
    end

    private
      def self.sample_girl
        ::Precure.all.sample
      end

      def self.sample_series
        ::Rubicure.core.to_a.sample
      end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
faker-precure-0.0.4 lib/faker/precure.rb