Sha256: 1411867bbc14e992f73fba268db641e42fef7d7fcba747c886cf624b4ef63dd3

Contents?: true

Size: 290 Bytes

Versions: 2

Compression:

Stored size: 290 Bytes

Contents

module PachubeStream
  class HtmlRequest < Hashie::Dash
  
    property :resource
    property :method
    property :headers, :default => {}
    property :token
    property :body
    property :params
  
    def api_key=(api_key)
      headers["X-PachubeApiKey"] = api_key
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pachube-stream-0.0.4 lib/pachube-stream/html_request.rb
pachube-stream-0.0.3 lib/pachube-stream/html_request.rb