Sha256: 7875186550f18971ac284033c465c0174d53affddd1c9664a4682481d24ea015

Contents?: true

Size: 791 Bytes

Versions: 1

Compression:

Stored size: 791 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.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_stars.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.3 lib/faker/precure.rb