Class: OpenKit::Request::Get
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(path, query_params = {}) ⇒ Get
constructor
A new instance of Get.
- #params_in_signature ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(path, query_params = {}) ⇒ Get
Returns a new instance of Get.
11 12 13 14 |
# File 'lib/openkit/request/get.rb', line 11 def initialize(path, query_params = {}) super :get, GetDelegate.new(path, query_params) @query_params = query_params end |
Class Method Details
.from(path, query_params = {}) ⇒ Object
7 8 9 |
# File 'lib/openkit/request/get.rb', line 7 def self.from(path, query_params = {}) new(path, query_params).perform end |
Instance Method Details
#params_in_signature ⇒ Object
16 17 18 |
# File 'lib/openkit/request/get.rb', line 16 def params_in_signature super.merge(symbolize_keys(@query_params)) end |