Module: RFlow::Components::Log::Extensions::LogExtension

Defined in:
lib/rflow/components/log.rb

Class Method Summary collapse

Instance Method Summary collapse

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

#levelObject



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

#textObject



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

#timestampObject



10
# File 'lib/rflow/components/log.rb', line 10

def timestamp; data_object['timestamp']; end

#timestamp=(new_timestamp) ⇒ Object



11
# File 'lib/rflow/components/log.rb', line 11

def timestamp=(new_timestamp); data_object['timestamp'] = new_timestamp; end