Class: DemoMode::Persona::Variant

Inherits:
Struct
  • Object
show all
Defined in:
lib/demo_mode/persona.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#signinable_generatorObject (readonly)

Returns the value of attribute signinable_generator.



119
120
121
# File 'lib/demo_mode/persona.rb', line 119

def signinable_generator
  @signinable_generator
end

Instance Method Details

#sign_in_as(&signinable_generator) ⇒ Object



111
112
113
# File 'lib/demo_mode/persona.rb', line 111

def (&signinable_generator)
  @signinable_generator = signinable_generator
end

#titleObject



115
116
117
# File 'lib/demo_mode/persona.rb', line 115

def title
  name.is_a?(Symbol) ? name.to_s.titleize : name.to_s
end