lib/pixela/graph.rb in pixela-0.4.0 vs lib/pixela/graph.rb in pixela-0.5.0

- old
+ new

@@ -42,19 +42,20 @@ end # Get graph url # # @param date [Date,Time] + # @param mode [String] e.g) `short` # # @return [String] # # @see https://pixe.la/#api-graph # # @example # client.graph("test-graph").url - # client.graph("test-graph").url(date: Date.new(2018, 3, 31)) - def url(date: nil) - client.graph_url(graph_id: graph_id, date: date) + # client.graph("test-graph").url(date: Date.new(2018, 3, 31), mode: "short") + def url(date: nil, mode: nil) + client.graph_url(graph_id: graph_id, date: date, mode: mode) end # Update predefined pixelation graph definitions. # # @param name [String]