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



17
18
19
# File 'lib/vero/dsl.rb', line 17

def vero
  @_vero_proxy ||= Proxy.new
end