lib/flow_chat/ussd/app.rb in flow_chat-0.1.0 vs lib/flow_chat/ussd/app.rb in flow_chat-0.2.0
- old
+ new
@@ -3,11 +3,11 @@
class App
attr_reader :session, :input, :context, :navigation_stack
def initialize(context)
@context = context
- @session = context["session"]
- @input = context["request.input"]
+ @session = context.session
+ @input = context.input
@navigation_stack = []
end
def screen(key)
raise ArgumentError, "a block is expected" unless block_given?