Skip to content

Commit 19b85a2

Browse files
Merge pull request #80 from AshishTI23/ashish/query-params-in-status-api
Query params in status api
2 parents 8c4149b + 0d9faed commit 19b85a2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
lockstep_rails (0.3.87)
4+
lockstep_rails (0.3.88)
55
rails
66

77
GEM

app/models/lockstep/status.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class Lockstep::Status
22
Lockstep::ApiRecord.model_name_uri = 'v1/Status'
33

4-
def self.ping
5-
resp = Lockstep::ApiRecord.resource.get('')
4+
def self.ping(query_params = {})
5+
resp = Lockstep::ApiRecord.resource.get('', params: query_params)
66
raise Lockstep::Exceptions::BadRequestError, 'Endpoint not found' if resp.code == '404'
77

88
status = JSON.parse(resp.body)

lib/lockstep_rails/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module LockstepRails
4-
VERSION = '0.3.87'
4+
VERSION = '0.3.88'
55
end

0 commit comments

Comments
 (0)