lib/flydata/api/data_entry.rb in flydata-0.0.5.6 vs lib/flydata/api/data_entry.rb in flydata-0.1.0

- old
+ new

@@ -4,8 +4,12 @@ def initialize(api_client) @model_name = 'data_entry' @url_path = "/data_ports/:data_port_id/#{@model_name.pluralize}" super end + + def buffer_stat(data_entry_id, mode = nil) + @client.get("/#{@model_name.pluralize}/#{data_entry_id}/buffer_stat/#{mode}") + end end end end