Class: Appsignal::AuthCheck
- Inherits:
-
Object
- Object
- Appsignal::AuthCheck
- Defined in:
- lib/appsignal/auth_check.rb
Constant Summary collapse
- ACTION =
'auth'
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#transmitter ⇒ Object
Returns the value of attribute transmitter.
Instance Method Summary collapse
-
#initialize(environment) ⇒ AuthCheck
constructor
A new instance of AuthCheck.
- #perform ⇒ Object
Constructor Details
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
4 5 6 |
# File 'lib/appsignal/auth_check.rb', line 4 def config @config end |
#transmitter ⇒ Object
Returns the value of attribute transmitter.
5 6 7 |
# File 'lib/appsignal/auth_check.rb', line 5 def transmitter @transmitter end |
Instance Method Details
#perform ⇒ Object
12 13 14 15 16 17 |
# File 'lib/appsignal/auth_check.rb', line 12 def perform self.transmitter = Appsignal::Transmitter.new( @config[:endpoint], ACTION, @config[:api_key] ) transmitter.transmit({}) end |