Class: Bianchi::USSD::Session
- Inherits:
-
Object
- Object
- Bianchi::USSD::Session
- Defined in:
- lib/bianchi/ussd/session.rb
Instance Attribute Summary collapse
-
#activity_state ⇒ Object
Returns the value of attribute activity_state.
-
#id ⇒ Object
Returns the value of attribute id.
-
#input_body ⇒ Object
Returns the value of attribute input_body.
-
#menu ⇒ Object
Returns the value of attribute menu.
-
#mobile_number ⇒ Object
Returns the value of attribute mobile_number.
-
#page_number ⇒ Object
Returns the value of attribute page_number.
-
#params ⇒ Object
Returns the value of attribute params.
-
#prompt_data ⇒ Object
Returns the value of attribute prompt_data.
-
#store ⇒ Object
Returns the value of attribute store.
Instance Method Summary collapse
-
#initialize(params, menu = nil, page_number = nil) ⇒ Session
constructor
A new instance of Session.
Constructor Details
#initialize(params, menu = nil, page_number = nil) ⇒ Session
Returns a new instance of Session.
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/bianchi/ussd/session.rb', line 10 def initialize(params, = nil, page_number = nil) @params = params.with_indifferent_access @activity_state = params[:activity_state] @mobile_number = params[:mobile_number] @id = params[:session_id] @input_body = params[:input_body] @prompt_data = {} @menu = @page_number = page_number @store = Store.new(self) end |
Instance Attribute Details
#activity_state ⇒ Object
Returns the value of attribute activity_state.
6 7 8 |
# File 'lib/bianchi/ussd/session.rb', line 6 def activity_state @activity_state end |
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/bianchi/ussd/session.rb', line 6 def id @id end |
#input_body ⇒ Object
Returns the value of attribute input_body.
6 7 8 |
# File 'lib/bianchi/ussd/session.rb', line 6 def input_body @input_body end |
#menu ⇒ Object
Returns the value of attribute menu.
6 7 8 |
# File 'lib/bianchi/ussd/session.rb', line 6 def @menu end |
#mobile_number ⇒ Object
Returns the value of attribute mobile_number.
6 7 8 |
# File 'lib/bianchi/ussd/session.rb', line 6 def mobile_number @mobile_number end |
#page_number ⇒ Object
Returns the value of attribute page_number.
6 7 8 |
# File 'lib/bianchi/ussd/session.rb', line 6 def page_number @page_number end |
#params ⇒ Object
Returns the value of attribute params.
6 7 8 |
# File 'lib/bianchi/ussd/session.rb', line 6 def params @params end |
#prompt_data ⇒ Object
Returns the value of attribute prompt_data.
6 7 8 |
# File 'lib/bianchi/ussd/session.rb', line 6 def prompt_data @prompt_data end |
#store ⇒ Object
Returns the value of attribute store.
6 7 8 |
# File 'lib/bianchi/ussd/session.rb', line 6 def store @store end |