Sha256: dab00f8987140c4bc4f3d62d2b258c3aaf753e41da99e9bac254622e4784aaf6
Contents?: true
Size: 519 Bytes
Versions: 2
Compression:
Stored size: 519 Bytes
Contents
module Geckoboard class Dataset attr_reader :client, :id, :fields def initialize(client, id, fields) @client = client @id = id @fields = fields end def delete client.delete(id) end def put(data) client.put_data(id, payload_formatter.format(data)) end def post(data, options = {}) client.post_data(id, payload_formatter.format(data), options) end private def payload_formatter PayloadFormatter.new(self) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
geckoboard-ruby-0.4.0 | lib/geckoboard/dataset.rb |
geckoboard-ruby-0.3.0 | lib/geckoboard/dataset.rb |