Class: Aws::Resources::Request
- Inherits:
-
Object
- Object
- Aws::Resources::Request
- Defined in:
- lib/aws-sdk-resources/request.rb
Instance Attribute Summary collapse
-
#method_name ⇒ String
readonly
Name of the method called on the client when this operation is called.
- #params ⇒ Array<RequestParams::Param> readonly
Instance Method Summary collapse
- #call(options) ⇒ Seahorse::Client::Response
-
#initialize(options = {}) ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize(options = {}) ⇒ Request
Returns a new instance of Request.
8 9 10 11 |
# File 'lib/aws-sdk-resources/request.rb', line 8 def initialize( = {}) @method_name = [:method_name] @params = [:params] || [] end |
Instance Attribute Details
#method_name ⇒ String (readonly)
Returns Name of the method called on the client when this operation is called.
15 16 17 |
# File 'lib/aws-sdk-resources/request.rb', line 15 def method_name @method_name end |
#params ⇒ Array<RequestParams::Param> (readonly)
18 19 20 |
# File 'lib/aws-sdk-resources/request.rb', line 18 def params @params end |
Instance Method Details
#call(options) ⇒ Seahorse::Client::Response
23 24 25 |
# File 'lib/aws-sdk-resources/request.rb', line 23 def call() client().send(@method_name, req_params(), &[:block]) end |