module Radissh

Constants

ROOT_PATH
VERSION

Attributes

configuration[RW]

Public Class Methods

configure() { |configuration| ... } click to toggle source
# File lib/radissh.rb, line 2
def self.configure
  self.configuration ||= Configuration.new
  yield(configuration)
end

Public Instance Methods

render_radissh(api_key = Radissh.configuration.api_key) click to toggle source
# File lib/radissh.rb, line 15
def render_radissh(api_key = Radissh.configuration.api_key)
  raw "<div id='radish-app'></div> <script type='text/javascript' charset='utf-8' src='https://radissh.com/initialize_radish?api_key=#{api_key}'></script>"
end