Class: Rumx::Beans::Message
- Inherits:
-
Object
- Object
- Rumx::Beans::Message
- Includes:
- Rumx::Bean
- Defined in:
- lib/rumx/beans/message.rb
Instance Method Summary collapse
-
#initialize(message, time = nil) ⇒ Message
constructor
A new instance of Message.
Methods included from Rumx::Bean
add_root, #bean_add_child, #bean_children, #bean_each, #bean_each_child, #bean_each_child_recursive, #bean_each_embedded_child, #bean_each_operation, #bean_each_operation_recursive, #bean_embedded, #bean_find, #bean_get_and_set_attributes, #bean_get_attributes, #bean_has_attributes?, #bean_has_operations?, #bean_monitor, #bean_remove_child, #bean_set_and_get_attributes, #bean_set_attributes, #bean_synchronize, find, find_operation, included, remove_root, root
Constructor Details
#initialize(message, time = nil) ⇒ Message
Returns a new instance of Message.
10 11 12 13 |
# File 'lib/rumx/beans/message.rb', line 10 def initialize(, time=nil) @message = @time = (time || Time.now).to_s end |