Class: BjondApi::BjondAppDefinition
- Inherits:
-
Object
- Object
- BjondApi::BjondAppDefinition
- Defined in:
- lib/bjond-app-definition.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#configURL ⇒ Object
Returns the value of attribute configURL.
-
#description ⇒ Object
Returns the value of attribute description.
-
#iconURL ⇒ Object
Returns the value of attribute iconURL.
-
#id ⇒ Object
Returns the value of attribute id.
-
#integrationConsequence ⇒ Object
Returns the value of attribute integrationConsequence.
-
#integrationEvent ⇒ Object
Returns the value of attribute integrationEvent.
-
#name ⇒ Object
Returns the value of attribute name.
-
#rootEndpoint ⇒ Object
Returns the value of attribute rootEndpoint.
Instance Method Summary collapse
- #get_hostname ⇒ Object
-
#initialize ⇒ BjondAppDefinition
constructor
A new instance of BjondAppDefinition.
Constructor Details
#initialize ⇒ BjondAppDefinition
Returns a new instance of BjondAppDefinition.
7 8 9 10 11 12 13 |
# 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 |
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author.
5 6 7 |
# File 'lib/bjond-app-definition.rb', line 5 def @author end |
#configURL ⇒ Object
Returns the value of attribute configURL.
5 6 7 |
# File 'lib/bjond-app-definition.rb', line 5 def configURL @configURL end |
#description ⇒ Object
Returns the value of attribute description.
5 6 7 |
# File 'lib/bjond-app-definition.rb', line 5 def description @description end |
#iconURL ⇒ Object
Returns the value of attribute iconURL.
5 6 7 |
# File 'lib/bjond-app-definition.rb', line 5 def iconURL @iconURL end |
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/bjond-app-definition.rb', line 5 def id @id end |
#integrationConsequence ⇒ Object
Returns the value of attribute integrationConsequence.
5 6 7 |
# File 'lib/bjond-app-definition.rb', line 5 def integrationConsequence @integrationConsequence end |
#integrationEvent ⇒ Object
Returns the value of attribute integrationEvent.
5 6 7 |
# File 'lib/bjond-app-definition.rb', line 5 def integrationEvent @integrationEvent end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/bjond-app-definition.rb', line 5 def name @name end |
#rootEndpoint ⇒ Object
Returns the value of attribute rootEndpoint.
5 6 7 |
# File 'lib/bjond-app-definition.rb', line 5 def rootEndpoint @rootEndpoint end |
Instance Method Details
#get_hostname ⇒ Object
15 16 17 |
# File 'lib/bjond-app-definition.rb', line 15 def get_hostname() Rails.application.config.action_controller. ? Rails.application.config.action_controller.[:root_url] : nil || `hostname` end |