Class: Synthra::Types::TechnologyInternet::AppName

Inherits:
Base
  • Object
show all
Defined in:
lib/synthra/types/technology_internet/apps.rb

Overview

AppName type

Constant Summary collapse

APP_NAMES =
[
  "MyApp", "SuperApp", "AwesomeApp", "BestApp", "CoolApp",
  "QuickApp", "SmartApp", "FastApp", "EasyApp", "ProApp"
].freeze

Instance Method Summary collapse

Instance Method Details

#generate_edge(rng, context, args) ⇒ Object



38
39
40
# File 'lib/synthra/types/technology_internet/apps.rb', line 38

def generate_edge(rng, context, args)
  ["", "MyApp", "A"].sample(random: rng.instance_variable_get(:@random))
end

#generate_invalid(rng, context, args) ⇒ Object



42
43
44
# File 'lib/synthra/types/technology_internet/apps.rb', line 42

def generate_invalid(rng, context, args)
  [nil, 123, [], {}].sample(random: rng.instance_variable_get(:@random))
end

#generate_random(rng, context, args) ⇒ Object



34
35
36
# File 'lib/synthra/types/technology_internet/apps.rb', line 34

def generate_random(rng, context, args)
  rng.sample(APP_NAMES)
end