Class: KnapsackPro::Client::API::Action
- Inherits:
-
Object
- Object
- KnapsackPro::Client::API::Action
- Defined in:
- lib/knapsack_pro/client/api/action.rb
Instance Attribute Summary collapse
-
#endpoint_path ⇒ Object
readonly
Returns the value of attribute endpoint_path.
-
#http_method ⇒ Object
readonly
Returns the value of attribute http_method.
-
#request_hash ⇒ Object
readonly
Returns the value of attribute request_hash.
Instance Method Summary collapse
-
#initialize(endpoint_path:, http_method:, request_hash:) ⇒ Action
constructor
A new instance of Action.
Constructor Details
#initialize(endpoint_path:, http_method:, request_hash:) ⇒ Action
Returns a new instance of Action.
7 8 9 10 11 12 13 |
# File 'lib/knapsack_pro/client/api/action.rb', line 7 def initialize(endpoint_path:, http_method:, request_hash:) @endpoint_path = endpoint_path @http_method = http_method @request_hash = request_hash end |
Instance Attribute Details
#endpoint_path ⇒ Object (readonly)
Returns the value of attribute endpoint_path.
5 6 7 |
# File 'lib/knapsack_pro/client/api/action.rb', line 5 def endpoint_path @endpoint_path end |
#http_method ⇒ Object (readonly)
Returns the value of attribute http_method.
5 6 7 |
# File 'lib/knapsack_pro/client/api/action.rb', line 5 def http_method @http_method end |
#request_hash ⇒ Object (readonly)
Returns the value of attribute request_hash.
5 6 7 |
# File 'lib/knapsack_pro/client/api/action.rb', line 5 def request_hash @request_hash end |