Vzaar

Constants

VZAAR_LIVE_SERVER
HTTP_GET
HTTP_POST
HTTP_DELETE
HTTP_PUT
HTTP_OK
HTTP_CREATED
HTTP_FORBIDDEN
HTTP_NOT_FOUND
HTTP_BAD_GATEWAY

Attributes

connection[RW]

Public Class Methods

connect!(options = {}) click to toggle source

Use the method to create global connection to vzaar.

Usage:

  • Vzaar.connect! :login => ‘Your vzaar login’, :application_token => ‘Your vzaar application token’, :server => ‘The vzaar server (vzaar.com by default)’

    # File lib/vzaar.rb, line 48
48:     def connect!(options = {})
49:       @connection = Base.new options
50:     end
enable_uploader() click to toggle source

Enables Rails specifc views and controllers used by vzaar uploader.

    # File lib/vzaar.rb, line 53
53:     def enable_uploader
54:       return if ActionView::Base.instance_methods.include? 'vzaar_basic_uploader'
55:       require 'rails/views/view_helpers'
56:       ActionView::Base.send :include, Vzaar::ViewHelpers
57:       controllers_path = "#{File.dirname(__FILE__)}/rails/controllers"
58:       ActiveSupport::Dependencies.load_paths << controllers_path
59:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.