Class: Mergent::Object
- Inherits:
-
Object
- Object
- Mergent::Object
- Defined in:
- lib/mergent/object.rb
Constant Summary collapse
- DEFAULT_QUEUE =
"default"
Instance Attribute Summary collapse
-
#_data ⇒ Object
readonly
Returns the value of attribute _data.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ Object
constructor
A new instance of Object.
Constructor Details
#initialize(data = {}) ⇒ Object
Returns a new instance of Object.
9 10 11 |
# File 'lib/mergent/object.rb', line 9 def initialize(data = {}) @_data = data.transform_keys(&:to_sym) end |
Instance Attribute Details
#_data ⇒ Object (readonly)
Returns the value of attribute _data.
7 8 9 |
# File 'lib/mergent/object.rb', line 7 def _data @_data end |