Class: Crubyflie::LogConf
- Inherits:
-
Object
- Object
- Crubyflie::LogConf
- Defined in:
- lib/crubyflie/crazyflie/log_conf.rb
Overview
Interface for Logging configuration objects
Instance Attribute Summary collapse
-
#data_callback ⇒ Object
readonly
Returns the value of attribute data_callback.
-
#period ⇒ Object
readonly
Returns the value of attribute period.
-
#variables ⇒ Object
readonly
Returns the value of attribute variables.
Instance Method Summary collapse
-
#initialize(variables, data_callback, opts = {}) ⇒ LogConf
constructor
A new instance of LogConf.
Constructor Details
#initialize(variables, data_callback, opts = {}) ⇒ LogConf
Returns a new instance of LogConf.
24 25 26 27 28 |
# File 'lib/crubyflie/crazyflie/log_conf.rb', line 24 def initialize(variables, data_callback, opts={}) @variables = variables @data_callback = data_callback @period = opts[:period] || 20 end |
Instance Attribute Details
#data_callback ⇒ Object (readonly)
Returns the value of attribute data_callback.
23 24 25 |
# File 'lib/crubyflie/crazyflie/log_conf.rb', line 23 def data_callback @data_callback end |
#period ⇒ Object (readonly)
Returns the value of attribute period.
23 24 25 |
# File 'lib/crubyflie/crazyflie/log_conf.rb', line 23 def period @period end |
#variables ⇒ Object (readonly)
Returns the value of attribute variables.
23 24 25 |
# File 'lib/crubyflie/crazyflie/log_conf.rb', line 23 def variables @variables end |