lib/pixela/graph.rb in pixela-1.2.0 vs lib/pixela/graph.rb in pixela-1.3.0

- old
+ new

@@ -33,11 +33,11 @@ # # @return [Pixela::Response] # # @raise [Pixela::PixelaError] API is failed # - # @see https://docs.pixe.la/#/post-graph + # @see https://docs.pixe.la/entry/post-graph # # @example # client.graph("test-graph").create(name: "graph-name", unit: "commit", type: "int", color: "shibafu", timezone: "Asia/Tokyo", self_sufficient: "increment") def create(name:, unit:, type:, color:, timezone: nil, self_sufficient: nil) client.create_graph(graph_id: graph_id, name: name, unit: unit, type: type, color: color, timezone: timezone, self_sufficient: self_sufficient) @@ -48,11 +48,11 @@ # @param date [Date,Time] # @param mode [String] e.g) `short` # # @return [String] # - # @see https://docs.pixe.la/#/get-graph + # @see https://docs.pixe.la/entry/get-graph # # @example # client.graph("test-graph").url # client.graph("test-graph").url(date: Date.new(2018, 3, 31), mode: "short") def url(date: nil, mode: nil) @@ -70,11 +70,11 @@ # # @return [Pixela::Response] # # @raise [Pixela::PixelaError] API is failed # - # @see https://docs.pixe.la/#/put-graph + # @see https://docs.pixe.la/entry/put-graph # # @example # client.graph("test-graph").update(name: "graph-name", unit: "commit", color: "shibafu", timezone: "Asia/Tokyo", purge_cache_urls: ["https://camo.githubusercontent.com/xxx/xxxx"]) def update(name: nil, unit: nil, color: nil, timezone: nil, purge_cache_urls: nil, self_sufficient: nil) client.update_graph(graph_id: graph_id, name: name, unit: unit, color: color, timezone: timezone, self_sufficient: self_sufficient, purge_cache_urls: purge_cache_urls) @@ -84,11 +84,11 @@ # # @return [Pixela::Response] # # @raise [Pixela::PixelaError] API is failed # - # @see https://docs.pixe.la/#/put-graph + # @see https://docs.pixe.la/entry/put-graph # # @example # client.graph("test-graph").delete def delete client.delete_graph(graph_id) @@ -98,11 +98,11 @@ # # @return [Pixela::Response] # # @raise [Pixela::PixelaError] API is failed # - # @see https://docs.pixe.la/#/increment-pixel + # @see https://docs.pixe.la/entry/increment-pixel # # @example # client.graph("test-graph").increment def increment client.increment_pixel(graph_id: graph_id) @@ -112,11 +112,11 @@ # # @return [Pixela::Response] # # @raise [Pixela::PixelaError] API is failed # - # @see https://docs.pixe.la/#/decrement-pixel + # @see https://docs.pixe.la/entry/decrement-pixel # # @example # client.graph("test-graph").decrement def decrement client.decrement_pixel(graph_id: graph_id) @@ -129,11 +129,11 @@ # # @return [Array<Date>] # # @raise [Pixela::PixelaError] API is failed # - # @see https://docs.pixe.la/#/get-graph-pixels + # @see https://docs.pixe.la/entry/get-graph-pixels # # @example # client.graph("test-graph").pixel_dates(from: Date.new(2018, 1, 1), to: Date.new(2018, 12, 31)) def pixel_dates(from: nil, to: nil) client.get_pixel_dates(graph_id: graph_id, from: from, to: to) @@ -143,10 +143,10 @@ # # @return [Pixela::Response] # # @raise [Pixela::PixelaError] API is failed # - # @see https://docs.pixe.la/#/get-graph-stats + # @see https://docs.pixe.la/entry/get-graph-stats # # @example # client.graph("test-graph").stats def stats client.get_graph_stats(graph_id: graph_id)