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(args) ⇒ Action
constructor
A new instance of Action.
Constructor Details
#initialize(args) ⇒ Action
Returns a new instance of Action.
7 8 9 10 11 |
# File 'lib/knapsack_pro/client/api/action.rb', line 7 def initialize(args) @endpoint_path = args.fetch(:endpoint_path) @http_method = args.fetch(:http_method) @request_hash = args.fetch(: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 |