lib/pulsedive/indicator.rb in pulsedive-0.1.3 vs lib/pulsedive/indicator.rb in pulsedive-0.1.4

- old
+ new

@@ -1,9 +1,10 @@ +# frozen_string_literal: true + module Pulsedive class Indicator < Client - - def get_by_id(iid, schema = 1) + def get_by_id(iid, schema: 1) params = { "iid": iid, "schema": schema } get("/api/info.php", params) { |json| json } @@ -14,10 +15,10 @@ "indicator": indicator } get("/api/info.php", params) { |json| json } end - def get_links_by_id(iid, page = 0) + def get_links_by_id(iid, page: 0) params = { "iid": iid, "get": "links", "page": page }