Module: Entrance::Agent::Bouton

Included in:
Doorkeepr, Zookeeper
Defined in:
lib/entrance/agent/bouton.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#applicationObject

Returns the value of attribute application.



8
9
10
# File 'lib/entrance/agent/bouton.rb', line 8

def application
  @application
end

#customerObject

Returns the value of attribute customer.



8
9
10
# File 'lib/entrance/agent/bouton.rb', line 8

def customer
  @customer
end

#functionObject

Returns the value of attribute function.



8
9
10
# File 'lib/entrance/agent/bouton.rb', line 8

def function
  @function
end

Instance Method Details

#configObject



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/entrance/agent/bouton.rb', line 9

def config
  @mode        ||= :tcp
  @function    ||= "common"
  @application ||= self.class.name.split("::").last
  @customer    ||= "global"
  Synapse::Easy::Service.new  customer:    @customer,
                              application: @application,
                              function:    @function,
                              mode:        @mode,
                              uri:         @uri
end