Class: Aws::Glacier::Plugins::AccountId::Handler

Inherits:
Seahorse::Client::Handler show all
Defined in:
gems/aws-sdk-glacier/lib/aws-sdk-glacier/plugins/account_id.rb

Instance Attribute Summary

Attributes inherited from Seahorse::Client::Handler

#handler

Instance Method Summary collapse

Methods inherited from Seahorse::Client::Handler

#initialize, #inspect

Constructor Details

This class inherits a constructor from Seahorse::Client::Handler

Instance Method Details

#call(context) ⇒ Object



18
19
20
21
22
23
24
# File 'gems/aws-sdk-glacier/lib/aws-sdk-glacier/plugins/account_id.rb', line 18

def call(context)
  context.params[:account_id] ||= context.config.
  if context.params[:account_id].empty?
    context.params[:account_id] = '-'
  end
  @handler.call(context)
end