covermymeds/cover_my_meds

View on GitHub
lib/cover_my_meds/client/request_pages.rb

Summary

Maintainability
A
0 mins
Test Coverage
module CoverMyMeds
  module RequestPages
    include HostAndPath

    CURRENT_VERSION = 1

    def get_request_page request_id, token_id, remote_user = {}, version = CURRENT_VERSION
      params = { token_id: token_id, v: version , remote_user: remote_user }
      request_page = request_pages_request(
        GET, params: params, path: request_id, auth: :bearer
      )
      Hashie::Mash.new(request_page["request_page"])
    end
  end
end