Module: Vero::DSL

Defined in:
lib/vero/dsl.rb

Overview

A lightweight DSL for using the Vero API. You may find this desirable in your Rails controllers having decided not to mix the Vero gem directly into your models.

Example usage:

class UsersController < ApplicationController
  include Vero::DSL

  def update
    vero.users.track!({ ... })
  end
end

Defined Under Namespace

Classes: Proxy

Instance Method Summary collapse

Instance Method Details

#veroObject



19
20
21
# File 'lib/vero/dsl.rb', line 19

def vero
  @vero ||= Proxy.new
end