Module: RFlow::Components::Log::Extensions::LogExtension
- Defined in:
- lib/rflow/components/log.rb
Class Method Summary collapse
Instance Method Summary collapse
- #level ⇒ Object
- #level=(new_level) ⇒ Object
- #text ⇒ Object
- #text=(new_text) ⇒ Object
- #timestamp ⇒ Object
- #timestamp=(new_timestamp) ⇒ Object
Class Method Details
.extended(base_data) ⇒ Object
6 7 8 |
# File 'lib/rflow/components/log.rb', line 6 def self.extended(base_data) base_data.data_object ||= {'timestamp' => 0, 'level' => 'INFO', 'text' => ''} end |
Instance Method Details
#level ⇒ Object
12 |
# File 'lib/rflow/components/log.rb', line 12 def level; data_object['level']; end |
#level=(new_level) ⇒ Object
13 |
# File 'lib/rflow/components/log.rb', line 13 def level=(new_level); data_object['level'] = new_level; end |
#text ⇒ Object
14 |
# File 'lib/rflow/components/log.rb', line 14 def text; data_object['text']; end |
#text=(new_text) ⇒ Object
15 |
# File 'lib/rflow/components/log.rb', line 15 def text=(new_text); data_object['text'] = new_text; end |
#timestamp ⇒ Object
10 |
# File 'lib/rflow/components/log.rb', line 10 def ; data_object['timestamp']; end |
#timestamp=(new_timestamp) ⇒ Object
11 |
# File 'lib/rflow/components/log.rb', line 11 def (); data_object['timestamp'] = ; end |