Class: FinApps::REST::OrderReports

Inherits:
FinAppsCore::REST::Resources
  • Object
show all
Defined in:
lib/finapps/rest/order_reports.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#show(id, format) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/finapps/rest/order_reports.rb', line 6

def show(id, format)
  not_blank(id, :id)
  not_blank(format, :format)
  fail FinAppsCore::InvalidArgumentsError, 'Invalid argument: format' unless accepted_format?(format)

  path =
    "orders/#{ERB::Util.url_encode(id)}/report.#{ERB::Util.url_encode(format)}"
  super nil, path
end