class BjondApi::BjondAppDefinition

Attributes

author[RW]
configURL[RW]
description[RW]
iconURL[RW]
id[RW]
integrationConsequence[RW]
integrationEvent[RW]
name[RW]
rootEndpoint[RW]

Public Class Methods

new() click to toggle source
# File lib/bjond-app-definition.rb, line 7
def initialize()
  self.id = SecureRandom.uuid
  self.configURL    = "#{self.get_hostname}/bjond-app/services"
  self.rootEndpoint = "#{self.get_hostname}/bjond-app/services"
  self.integrationEvent = []
  self.integrationConsequence = []
end

Public Instance Methods

get_hostname() click to toggle source
# File lib/bjond-app-definition.rb, line 15
def get_hostname()
  Rails.application.config.action_controller.default_url_options ? Rails.application.config.action_controller.default_url_options[:root_url] : nil || `hostname`
end