Sha256: 5f71e7e213f28d9d495c4ba4a363905ed39adedaac3936166c1554fdb93ab34b

Contents?: true

Size: 526 Bytes

Versions: 1

Compression:

Stored size: 526 Bytes

Contents

# frozen_string_literal: true
module FinApps
  module REST
    class UserInstitutionsStatuses < FinApps::REST::Resources # :nodoc:
      require 'erb'

      using ObjectExtensions
      using StringExtensions

      def show(id)
        raise MissingArgumentsError.new 'Missing argument: ui_id' if id.blank?

        path = "institutions/user/#{ERB::Util.url_encode(id)}/status"
        super id, path
      end

      def update
        path = 'institutions/user/refresh'
        super nil, path
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
finapps-2.0.21 lib/finapps/rest/user_institutions_statuses.rb