Sha256: ccee4130c2a9634eac7c92149ff7c863e9457fd11e7e58f4bdae44b7fdd7e62b

Contents?: true

Size: 416 Bytes

Versions: 1

Compression:

Stored size: 416 Bytes

Contents

module Demode
  module Generator
    class << self

      def company_name(id)
        first_name = Fields.get(id,:company_names)
        last_name = Fields.get(id,:company_suffixes)
        [first_name, last_name].join(' ')
      end

      def company_domain(id)
        domain_suffix = Fields.get(id,:domain_suffixes)
        [company_name(id).downcase, domain_suffix].join('.')
      end
      
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
demode-0.0.3 lib/demode/generator/company.rb