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(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_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