Class: Synthra::Types::TextContent::LinkedInSkill

Inherits:
Base
  • Object
show all
Defined in:
lib/synthra/types/text_content/misc.rb

Overview

LinkedInSkill type

Constant Summary collapse

SKILLS =
[
  "JavaScript", "Python", "Java", "Ruby", "Go", "Rust",
  "React", "Vue", "Angular", "Node.js", "SQL", "MongoDB",
  "AWS", "Docker", "Kubernetes", "Git", "Agile", "Scrum"
].freeze

Instance Method Summary collapse

Instance Method Details

#generate_edge(rng, context, args) ⇒ Object



75
76
77
# File 'lib/synthra/types/text_content/misc.rb', line 75

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

#generate_invalid(rng, context, args) ⇒ Object



79
80
81
# File 'lib/synthra/types/text_content/misc.rb', line 79

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

#generate_random(rng, context, args) ⇒ Object



71
72
73
# File 'lib/synthra/types/text_content/misc.rb', line 71

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