Class: Sinbotra::Bot::User
- Inherits:
-
Object
- Object
- Sinbotra::Bot::User
- Defined in:
- lib/sinbotra/bot/user.rb
Defined Under Namespace
Classes: Conversation
Instance Attribute Summary collapse
-
#conversation ⇒ Object
readonly
Returns the value of attribute conversation.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
- #end_conversation ⇒ Object
-
#initialize(id) ⇒ User
constructor
A new instance of User.
- #update_conversation(id, step) ⇒ Object
Constructor Details
#initialize(id) ⇒ User
Returns a new instance of User.
10 11 12 |
# File 'lib/sinbotra/bot/user.rb', line 10 def initialize(id) @id = id end |
Instance Attribute Details
#conversation ⇒ Object (readonly)
Returns the value of attribute conversation.
8 9 10 |
# File 'lib/sinbotra/bot/user.rb', line 8 def conversation @conversation end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
7 8 9 |
# File 'lib/sinbotra/bot/user.rb', line 7 def id @id end |
Instance Method Details
#end_conversation ⇒ Object
14 15 16 |
# File 'lib/sinbotra/bot/user.rb', line 14 def end_conversation @conversation = nil end |
#update_conversation(id, step) ⇒ Object
18 19 20 |
# File 'lib/sinbotra/bot/user.rb', line 18 def update_conversation(id, step) @conversation = Conversation.new(id, step) end |