Sha256: 74364eb09f32000be3dcbd5ce775459afedb6877777a31de95475475f24b6d2e

Contents?: true

Size: 795 Bytes

Versions: 1

Compression:

Stored size: 795 Bytes

Contents

# whipped-cream
[![Gem Version](https://badge.fury.io/rb/whipped-cream.png)](http://badge.fury.io/rb/whipped-cream)
[![Build Status](https://travis-ci.org/justincampbell/whipped-cream.png?branch=master)](https://travis-ci.org/justincampbell/whipped-cream)
[![Code Climate](https://codeclimate.com/github/justincampbell/whipped-cream.png)](https://codeclimate.com/github/justincampbell/whipped-cream)

## DSL

```rb
name "Garage"

camera

button "Open/Close", pin: 1 do
  tap
end

sensor "Door",
  pin: 2,
  low: "Closed",
  high: "Open",
  on_high: :door_opened

sensor "Temperature", pin: 3, unit: "F" do
  binary_to_farenheit(value)
end

helpers do
  def binary_to_farenheit(binary)
    binary.to_f * 123.45
  end

  def door_opened
    WhippedCream.find("Front Door").ring_bell
  end
end
```

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
whipped-cream-0.0.1pre3 README.md