Class: SpellBook::App

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/spellbook/app.rb

Instance Method Summary collapse

Instance Method Details

#proxy?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/spellbook/app.rb', line 7

def proxy?
  self.proxy
end

#urlObject



11
12
13
14
15
16
17
# File 'lib/spellbook/app.rb', line 11

def url
  if self.proxy?
    "/#{self.name}/"
  else
    "http://localhost:#{self.port}"
  end
end