Class: DataDomeEvent
- Inherits:
-
Object
- Object
- DataDomeEvent
- Defined in:
- lib/model/events.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#account ⇒ Object
Returns the value of attribute account.
-
#action ⇒ Object
Returns the value of attribute action.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(action, account, status = DataDomeStatusType::UNDEFINED) ⇒ DataDomeEvent
constructor
A new instance of DataDomeEvent.
- #merge_with(request_data) ⇒ Object
Constructor Details
#initialize(action, account, status = DataDomeStatusType::UNDEFINED) ⇒ DataDomeEvent
Returns a new instance of DataDomeEvent.
17 18 19 20 21 |
# File 'lib/model/events.rb', line 17 def initialize(action, account, status = DataDomeStatusType::UNDEFINED) @action = action @account = account @status = status end |
Instance Attribute Details
#account ⇒ Object
Returns the value of attribute account.
15 16 17 |
# File 'lib/model/events.rb', line 15 def account @account end |
#action ⇒ Object
Returns the value of attribute action.
15 16 17 |
# File 'lib/model/events.rb', line 15 def action @action end |
#status ⇒ Object
Returns the value of attribute status.
15 16 17 |
# File 'lib/model/events.rb', line 15 def status @status end |
Instance Method Details
#merge_with(request_data) ⇒ Object
23 24 25 26 27 |
# File 'lib/model/events.rb', line 23 def merge_with(request_data) request_data.instance_variable_set(:@account, @account) request_data.instance_variable_set(:@status, @status) request_data end |