Class: Option
- Inherits:
-
Object
- Object
- Option
- Includes:
- Mongoid::Document, Mongoid::Timestamps
- Defined in:
- lib/models/option.rb
Overview
Holds a single app configuration option, essentially a key value pair within the configuration group
Instance Method Summary collapse
-
#agent_payload ⇒ Object
Return the payload for the agent.
Instance Method Details
#agent_payload ⇒ Object
Return the payload for the agent
30 31 32 33 34 35 36 |
# File 'lib/models/option.rb', line 30 def agent_payload { updated_at: (updated_at || Date.new), key: key, value: value, type: value_type, id: id.to_s } end |