Sha256: 6f087a90f49e2d4750d9bf37f14bddb1a7f462d93096e048b0a2bc2490b88002

Contents?: true

Size: 708 Bytes

Versions: 2

Compression:

Stored size: 708 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
      sample_girl.transform_message
    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_stars.sample
      end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
faker-precure-0.0.2 lib/faker/precure.rb
faker-precure-0.0.1 lib/faker/precure.rb