Class: QNE::SalesOrder::Show
- Inherits:
-
Object
- Object
- QNE::SalesOrder::Show
- Defined in:
- lib/QNE/sales_order/show.rb
Constant Summary collapse
- PATH =
'/api/SalesOrders/:id'
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(conn, id:) ⇒ Show
constructor
A new instance of Show.
Constructor Details
#initialize(conn, id:) ⇒ Show
Returns a new instance of Show.
8 9 10 11 |
# File 'lib/QNE/sales_order/show.rb', line 8 def initialize(conn, id:) @conn = conn @id = id end |
Instance Method Details
#call ⇒ Object
13 14 15 |
# File 'lib/QNE/sales_order/show.rb', line 13 def call @conn.get(PATH.gsub(':id', @id)) end |