Class: Judoscale::Adapter

Inherits:
Struct
  • Object
show all
Defined in:
lib/judoscale-ruby.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#adapter_infoObject

Returns the value of attribute adapter_info



23
24
25
# File 'lib/judoscale-ruby.rb', line 23

def adapter_info
  @adapter_info
end

#identifierObject

Returns the value of attribute identifier



23
24
25
# File 'lib/judoscale-ruby.rb', line 23

def identifier
  @identifier
end

#metrics_collectorObject

Returns the value of attribute metrics_collector



23
24
25
# File 'lib/judoscale-ruby.rb', line 23

def metrics_collector
  @metrics_collector
end

Instance Method Details

#as_jsonObject



24
25
26
# File 'lib/judoscale-ruby.rb', line 24

def as_json
  {identifier => adapter_info}
end