Class: Cequens::Request
- Inherits:
-
Object
- Object
- Cequens::Request
- Defined in:
- lib/cequens/request.rb
Constant Summary collapse
- DEFAULT_OPTIONS =
{}.freeze
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
Instance Method Summary collapse
-
#initialize(action, params, opts) ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize(action, params, opts) ⇒ Request
Returns a new instance of Request.
9 10 11 12 13 14 15 |
# File 'lib/cequens/request.rb', line 9 def initialize(action, params, opts) @action = action @params = params @options = DEFAULT_OPTIONS.merge(opts) build_request end |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
7 8 9 |
# File 'lib/cequens/request.rb', line 7 def action @action end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/cequens/request.rb', line 7 def @options end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
7 8 9 |
# File 'lib/cequens/request.rb', line 7 def params @params end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
7 8 9 |
# File 'lib/cequens/request.rb', line 7 def request @request end |