Class: Peach::App::Request
- Inherits:
-
Object
- Object
- Peach::App::Request
- Defined in:
- lib/peach/app/request.rb
Overview
:nodoc:
Constant Summary collapse
- APP_EXECUTION_TYPES =
{ init: 'app_execution.init', in_progress: 'app_execution.in_progress', reply_received: 'app_execution.reply_received' }.freeze
Instance Attribute Summary collapse
-
#contact ⇒ Object
readonly
Returns the value of attribute contact.
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#current_screen ⇒ Object
readonly
Returns the value of attribute current_screen.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
- #in_progress? ⇒ Boolean
- #init? ⇒ Boolean
-
#initialize(raw_params) ⇒ Request
constructor
A new instance of Request.
- #reply_received? ⇒ Boolean
Constructor Details
#initialize(raw_params) ⇒ Request
Returns a new instance of Request.
16 17 18 19 20 |
# File 'lib/peach/app/request.rb', line 16 def initialize(raw_params) params = parse_params raw_params validate_params params instantiate_instance_variables_from params end |
Instance Attribute Details
#contact ⇒ Object (readonly)
Returns the value of attribute contact.
8 9 10 |
# File 'lib/peach/app/request.rb', line 8 def contact @contact end |
#context ⇒ Object (readonly)
Returns the value of attribute context.
8 9 10 |
# File 'lib/peach/app/request.rb', line 8 def context @context end |
#current_screen ⇒ Object (readonly)
Returns the value of attribute current_screen.
8 9 10 |
# File 'lib/peach/app/request.rb', line 8 def current_screen @current_screen end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
8 9 10 |
# File 'lib/peach/app/request.rb', line 8 def params @params end |
Instance Method Details
#in_progress? ⇒ Boolean
26 27 28 |
# File 'lib/peach/app/request.rb', line 26 def in_progress? in_progress_request? @type end |
#init? ⇒ Boolean
22 23 24 |
# File 'lib/peach/app/request.rb', line 22 def init? init_request? @type end |
#reply_received? ⇒ Boolean
30 31 32 |
# File 'lib/peach/app/request.rb', line 30 def reply_received? reply_received_request? @type end |