Class: ActionPrompt::Prompt
- Inherits:
-
Object
- Object
- ActionPrompt::Prompt
- Defined in:
- lib/action_prompt/prompt.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#slug ⇒ Object
readonly
Returns the value of attribute slug.
Instance Method Summary collapse
-
#initialize(name:, slug:) ⇒ Prompt
constructor
NOTE: this could probably be a Struct.
Constructor Details
#initialize(name:, slug:) ⇒ Prompt
NOTE: this could probably be a Struct
6 7 8 9 |
# File 'lib/action_prompt/prompt.rb', line 6 def initialize(name:, slug:) @name = name @slug = slug end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/action_prompt/prompt.rb', line 3 def name @name end |
#slug ⇒ Object (readonly)
Returns the value of attribute slug.
3 4 5 |
# File 'lib/action_prompt/prompt.rb', line 3 def slug @slug end |