Class: Portage::Ucp::UnavailableReorderItem
- Inherits:
-
Data
- Object
- Data
- Portage::Ucp::UnavailableReorderItem
- Defined in:
- lib/portage/ucp/value_objects.rb
Overview
Portage extension (see Adapter#reorder / Capabilities::REORDER) — no
schemas/ counterpart to cite, since it isn't part of the UCP spec.
reason is a short adapter-chosen string (e.g. "out_of_stock",
"discontinued"), not a closed enum — same posture as Adapter#cancel_order's
reason:.
Instance Attribute Summary collapse
-
#item_id ⇒ Object
readonly
Returns the value of attribute item_id.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
Instance Attribute Details
#item_id ⇒ Object (readonly)
Returns the value of attribute item_id
529 530 531 |
# File 'lib/portage/ucp/value_objects.rb', line 529 def item_id @item_id end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason
529 530 531 |
# File 'lib/portage/ucp/value_objects.rb', line 529 def reason @reason end |
#title ⇒ Object (readonly)
Returns the value of attribute title
529 530 531 |
# File 'lib/portage/ucp/value_objects.rb', line 529 def title @title end |
Instance Method Details
#to_wire_h ⇒ Object
530 |
# File 'lib/portage/ucp/value_objects.rb', line 530 def to_wire_h = { "item_id" => item_id, "title" => title, "reason" => reason } |