Class: KnapsackPro::Client::API::Action

Inherits:
Object
  • Object
show all
Defined in:
lib/knapsack_pro/client/api/action.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_pathObject (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_methodObject (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_hashObject (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