Class: Base
- Inherits:
-
Object
- Object
- Base
- Defined in:
- lib/reprompt/clients/base.rb,
lib/reprompt/templates/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
-
#conversation ⇒ Object
Returns the value of attribute conversation.
-
#max_responses ⇒ Object
Returns the value of attribute max_responses.
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(max_responses = 5) ⇒ Base
constructor
A new instance of Base.
- #prompt(question) ⇒ Object
Constructor Details
#initialize(max_responses = 5) ⇒ Base
Returns a new instance of Base.
4 5 |
# File 'lib/reprompt/clients/base.rb', line 4 def initialize end |
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client.
4 5 6 |
# File 'lib/reprompt/templates/base.rb', line 4 def client @client end |
#conversation ⇒ Object
Returns the value of attribute conversation.
4 5 6 |
# File 'lib/reprompt/templates/base.rb', line 4 def conversation @conversation end |
#max_responses ⇒ Object
Returns the value of attribute max_responses.
4 5 6 |
# File 'lib/reprompt/templates/base.rb', line 4 def max_responses @max_responses end |
#uri ⇒ Object
Returns the value of attribute uri.
2 3 4 |
# File 'lib/reprompt/clients/base.rb', line 2 def uri @uri end |
Instance Method Details
#prompt(question) ⇒ Object
7 8 9 |
# File 'lib/reprompt/clients/base.rb', line 7 def prompt(question) raise NotImplementedError end |