Class: AlexaGenerator::Slot
- Inherits:
-
Object
- Object
- AlexaGenerator::Slot
- Defined in:
- lib/alexa_generator/slot.rb
Defined Under Namespace
Modules: SlotType Classes: Builder
Instance Attribute Summary collapse
-
#bindings ⇒ Object
readonly
Returns the value of attribute bindings.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name, type, bindings) ⇒ Slot
constructor
A new instance of Slot.
Constructor Details
#initialize(name, type, bindings) ⇒ Slot
Returns a new instance of Slot.
43 44 45 46 47 |
# File 'lib/alexa_generator/slot.rb', line 43 def initialize(name, type, bindings) @name = name.to_sym @type = type @bindings = bindings end |
Instance Attribute Details
#bindings ⇒ Object (readonly)
Returns the value of attribute bindings.
41 42 43 |
# File 'lib/alexa_generator/slot.rb', line 41 def bindings @bindings end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
41 42 43 |
# File 'lib/alexa_generator/slot.rb', line 41 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
41 42 43 |
# File 'lib/alexa_generator/slot.rb', line 41 def type @type end |