Class: SynchronizedModel::MessageReceive
- Inherits:
-
Object
- Object
- SynchronizedModel::MessageReceive
- Defined in:
- lib/synchronized_model/message_receive.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(message) ⇒ MessageReceive
constructor
A new instance of MessageReceive.
Constructor Details
#initialize(message) ⇒ MessageReceive
Returns a new instance of MessageReceive.
8 9 10 |
# File 'lib/synchronized_model/message_receive.rb', line 8 def initialize() = Hash[.map { |k, v| [k.to_sym, v] }] end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
6 7 8 |
# File 'lib/synchronized_model/message_receive.rb', line 6 def end |
Instance Method Details
#call ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/synchronized_model/message_receive.rb', line 12 def call if model update_model else log_model_not_found end end |