Class: Katello::Agent::BaseMessage
- Inherits:
-
Object
- Object
- Katello::Agent::BaseMessage
- Defined in:
- app/lib/katello/agent/base_message.rb
Direct Known Subclasses
InstallErrataMessage, InstallPackageGroupMessage, InstallPackageMessage, RemovePackageGroupMessage, RemovePackageMessage, UpdatePackageMessage
Instance Attribute Summary collapse
-
#dispatch_history_id ⇒ Object
Returns the value of attribute dispatch_history_id.
-
#recipient_address ⇒ Object
Returns the value of attribute recipient_address.
-
#reply_to ⇒ Object
Returns the value of attribute reply_to.
Instance Method Summary collapse
- #json ⇒ Object
-
#options ⇒ Object
may be overridden by children.
- #to_s ⇒ Object
Instance Attribute Details
#dispatch_history_id ⇒ Object
Returns the value of attribute dispatch_history_id.
4 5 6 |
# File 'app/lib/katello/agent/base_message.rb', line 4 def dispatch_history_id @dispatch_history_id end |
#recipient_address ⇒ Object
Returns the value of attribute recipient_address.
4 5 6 |
# File 'app/lib/katello/agent/base_message.rb', line 4 def recipient_address @recipient_address end |
#reply_to ⇒ Object
Returns the value of attribute reply_to.
4 5 6 |
# File 'app/lib/katello/agent/base_message.rb', line 4 def reply_to @reply_to end |
Instance Method Details
#json ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'app/lib/katello/agent/base_message.rb', line 6 def json { data: { consumer_id: @consumer_id, dispatch_history_id: dispatch_history_id }, replyto: reply_to, request: { args: [ units, ], classname: "Content", cntr: [[], {}], kws: {}, method: @method }, routing: [ nil, recipient_address ], version: "2.0" } end |
#options ⇒ Object
may be overridden by children
30 31 32 33 34 |
# File 'app/lib/katello/agent/base_message.rb', line 30 def # may be overridden by children { importkeys: true } end |
#to_s ⇒ Object
36 37 38 |
# File 'app/lib/katello/agent/base_message.rb', line 36 def to_s json.to_json end |